diff --git a/spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java b/spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java
index 9b0d8ceb73..989160bf65 100644
--- a/spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java
+++ b/spring-aop/src/main/java/org/springframework/aop/framework/ProxyFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -93,7 +93,6 @@ public class ProxyFactory extends ProxyCreatorSupport {
* (if necessary for proxy creation).
* @return the proxy object
*/
- @SuppressWarnings("unchecked")
public Object getProxy() {
return createAopProxy().getProxy();
}
@@ -107,7 +106,6 @@ public class ProxyFactory extends ProxyCreatorSupport {
* (or null
for the low-level proxy facility's default)
* @return the proxy object
*/
- @SuppressWarnings("unchecked")
public Object getProxy(ClassLoader classLoader) {
return createAopProxy().getProxy(classLoader);
}
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/config/DestructionAwareAttributeHolder.java b/spring-beans/src/main/java/org/springframework/beans/factory/config/DestructionAwareAttributeHolder.java
index ae7276fb33..52ecf9d88c 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/config/DestructionAwareAttributeHolder.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/config/DestructionAwareAttributeHolder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2011 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -59,7 +59,6 @@ public class DestructionAwareAttributeHolder implements Serializable {
* the name of the attribute to be returned
* @return the attribute value or null
if not available
*/
- @SuppressWarnings("unchecked")
public Object getAttribute(String name) {
return attributes.get(name);
}
@@ -75,7 +74,6 @@ public class DestructionAwareAttributeHolder implements Serializable {
* @return any previously object stored under the same name, if any,
* null
otherwise
*/
- @SuppressWarnings("unchecked")
public Object setAttribute(String name, Object value) {
return attributes.put(name, value);
}
@@ -101,7 +99,6 @@ public class DestructionAwareAttributeHolder implements Serializable {
* @return the removed object, or null
if no object was present
* @see #registerDestructionCallback
*/
- @SuppressWarnings("unchecked")
public Object removeAttribute(String name) {
Object value = attributes.remove(name);
diff --git a/spring-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java b/spring-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java
index 6df333fcca..921a5e03d4 100644
--- a/spring-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java
+++ b/spring-context-support/src/main/java/org/springframework/scheduling/quartz/JobDetailFactoryBean.java
@@ -168,7 +168,6 @@ public class JobDetailFactoryBean
}
- @SuppressWarnings("unchecked")
public void afterPropertiesSet() {
if (this.name == null) {
this.name = this.beanName;
@@ -196,7 +195,7 @@ public class JobDetailFactoryBean
this.jobDetail = jdi;
*/
- Class jobDetailClass;
+ Class> jobDetailClass;
try {
jobDetailClass = getClass().getClassLoader().loadClass("org.quartz.impl.JobDetailImpl");
}
diff --git a/spring-context/src/main/java/org/springframework/context/event/SourceFilteringListener.java b/spring-context/src/main/java/org/springframework/context/event/SourceFilteringListener.java
index 3fe6babc3c..a9326c5b16 100644
--- a/spring-context/src/main/java/org/springframework/context/event/SourceFilteringListener.java
+++ b/spring-context/src/main/java/org/springframework/context/event/SourceFilteringListener.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2009 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -88,7 +88,6 @@ public class SourceFilteringListener implements SmartApplicationListener {
*
The default implementation invokes the specified delegate, if any.
* @param event the event to process (matching the specified source)
*/
- @SuppressWarnings("unchecked")
protected void onApplicationEventInternal(ApplicationEvent event) {
if (this.delegate == null) {
throw new IllegalStateException(
diff --git a/spring-context/src/main/java/org/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter.java b/spring-context/src/main/java/org/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter.java
index 2e0fa5cf04..798393676b 100644
--- a/spring-context/src/main/java/org/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter.java
+++ b/spring-context/src/main/java/org/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2011 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -91,12 +91,11 @@ class WebSphereClassLoaderAdapter {
}
}
- @SuppressWarnings("unchecked")
public ClassLoader getThrowawayClassLoader() {
try {
ClassLoader loader = (ClassLoader) cloneConstructor.newInstance(getClassLoader());
// clear out the transformers (copied as well)
- List list = (List) transformerList.get(loader);
+ List> list = (List>) transformerList.get(loader);
list.clear();
return loader;
}
diff --git a/spring-context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java b/spring-context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java
index 76027827c9..0fa4b0e392 100644
--- a/spring-context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java
+++ b/spring-context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2011 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -20,7 +20,7 @@ import org.springframework.aop.framework.AbstractSingletonProxyFactoryBean;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
-@SuppressWarnings({ "serial", "deprecation" })
+@SuppressWarnings("serial")
public class TestProxyFactoryBean extends AbstractSingletonProxyFactoryBean implements BeanFactoryAware {
@Override
diff --git a/spring-core/src/main/java/org/springframework/core/LocalVariableTableParameterNameDiscoverer.java b/spring-core/src/main/java/org/springframework/core/LocalVariableTableParameterNameDiscoverer.java
index 6f0a29e8a7..9cf3f92a89 100644
--- a/spring-core/src/main/java/org/springframework/core/LocalVariableTableParameterNameDiscoverer.java
+++ b/spring-core/src/main/java/org/springframework/core/LocalVariableTableParameterNameDiscoverer.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2002-2010 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -77,7 +77,6 @@ public class LocalVariableTableParameterNameDiscoverer implements ParameterNameD
return null;
}
- @SuppressWarnings("unchecked")
public String[] getParameterNames(Constructor ctor) {
Class> declaringClass = ctor.getDeclaringClass();
Mapnull
if not found
*/
- @SuppressWarnings("unchecked")
public