From 986ccbe2c6f55a65704cf58a6a069ed1bbb5e110 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 14 Oct 2009 14:03:11 +0000 Subject: [PATCH] Suppressing unchecked and serial warnings. --- .../java/org/springframework/aop/framework/AdvisedSupport.java | 1 + .../springframework/aop/support/DefaultIntroductionAdvisor.java | 1 + .../src/main/java/org/springframework/util/TypeUtils.java | 1 + 3 files changed, 3 insertions(+) diff --git a/org.springframework.aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java b/org.springframework.aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java index 2835ed4be9..c550afb7e7 100644 --- a/org.springframework.aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java +++ b/org.springframework.aop/src/main/java/org/springframework/aop/framework/AdvisedSupport.java @@ -58,6 +58,7 @@ import org.springframework.util.CollectionUtils; * @author Juergen Hoeller * @see org.springframework.aop.framework.AopProxy */ +@SuppressWarnings("unchecked") public class AdvisedSupport extends ProxyConfig implements Advised { /** use serialVersionUID from Spring 2.0 for interoperability */ diff --git a/org.springframework.aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java b/org.springframework.aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java index 0ab671d12f..194ae88656 100644 --- a/org.springframework.aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java +++ b/org.springframework.aop/src/main/java/org/springframework/aop/support/DefaultIntroductionAdvisor.java @@ -38,6 +38,7 @@ import org.springframework.util.ClassUtils; * @author Juergen Hoeller * @since 11.11.2003 */ +@SuppressWarnings({ "unchecked", "serial" }) public class DefaultIntroductionAdvisor implements IntroductionAdvisor, ClassFilter, Ordered, Serializable { private final Advice advice; diff --git a/org.springframework.core/src/main/java/org/springframework/util/TypeUtils.java b/org.springframework.core/src/main/java/org/springframework/util/TypeUtils.java index d535f63585..b1cf5bba1c 100644 --- a/org.springframework.core/src/main/java/org/springframework/util/TypeUtils.java +++ b/org.springframework.core/src/main/java/org/springframework/util/TypeUtils.java @@ -38,6 +38,7 @@ public abstract class TypeUtils { * @param rhsType the value type that should be assigned to the target type * @return true if rhs is assignable to lhs */ + @SuppressWarnings("unchecked") public static boolean isAssignable(Type lhsType, Type rhsType) { Assert.notNull(lhsType, "Left-hand side type must not be null"); Assert.notNull(rhsType, "Right-hand side type must not be null");