Fix [cast] compiler warnings

This commit is contained in:
Phillip Webb
2012-12-18 18:06:44 -08:00
committed by Chris Beams
parent b0986049a3
commit 6c14eaad61
63 changed files with 122 additions and 122 deletions

View File

@@ -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;
}

View File

@@ -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) {