Fix [cast] compiler warnings
This commit is contained in:
committed by
Chris Beams
parent
b0986049a3
commit
6c14eaad61
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user