Clean up warnings and tests in spring-core

This commit is contained in:
Sam Brannen
2015-08-20 15:49:33 +02:00
parent 9ab4062317
commit a3e7848a30
16 changed files with 92 additions and 96 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -364,7 +364,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
}
@Override
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
public Map<String, Object> getSystemEnvironment() {
if (suppressGetenvAccess()) {
return Collections.emptyMap();
@@ -408,7 +408,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
}
@Override
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
public Map<String, Object> getSystemProperties() {
try {
return (Map) System.getProperties();

View File

@@ -91,7 +91,6 @@ public class ListenableFutureCallbackRegistry<T> {
* @param callback the failure callback to add
* @since 4.1
*/
@SuppressWarnings("unchecked")
public void addFailureCallback(FailureCallback callback) {
Assert.notNull(callback, "'callback' must not be null");
synchronized (this.mutex) {