Fix [cast] compiler warnings

This commit is contained in:
Phillip Webb
2012-12-28 22:41:06 +01:00
committed by Chris Beams
parent b0986049a3
commit 6c14eaad61
63 changed files with 122 additions and 122 deletions
@@ -322,7 +322,7 @@ public abstract class GenericCollectionTypeResolver {
Type resolvedType = type;
if (type instanceof TypeVariable && typeVariableMap != null) {
Type mappedType = typeVariableMap.get((TypeVariable) type);
Type mappedType = typeVariableMap.get(type);
if (mappedType != null) {
resolvedType = mappedType;
}
@@ -383,7 +383,7 @@ public abstract class GenericCollectionTypeResolver {
}
Type paramType = paramTypes[typeIndex];
if (paramType instanceof TypeVariable && typeVariableMap != null) {
Type mappedType = typeVariableMap.get((TypeVariable) paramType);
Type mappedType = typeVariableMap.get(paramType);
if (mappedType != null) {
paramType = mappedType;
}
@@ -106,7 +106,7 @@ public class AnnotationAttributes extends LinkedHashMap<String, Object> {
@SuppressWarnings("unchecked")
public <T> Class<? extends T> getClass(String attributeName) {
return (Class<T>)doGet(attributeName, Class.class);
return doGet(attributeName, Class.class);
}
public Class<?>[] getClassArray(String attributeName) {