Don't need local var.

This commit is contained in:
Gary Gregory 2020-11-26 10:00:32 -05:00
parent ebed08cb25
commit c2da7e3c51
1 changed files with 1 additions and 2 deletions

View File

@ -373,8 +373,7 @@ public static boolean containsTypeVariables(final Type type) {
|| containsTypeVariables(getImplicitUpperBounds(wild)[0]); || containsTypeVariables(getImplicitUpperBounds(wild)[0]);
} }
if (type instanceof GenericArrayType) { if (type instanceof GenericArrayType) {
final GenericArrayType array = (GenericArrayType) type; return containsTypeVariables(((GenericArrayType) type).getGenericComponentType());
return containsTypeVariables(array.getGenericComponentType());
} }
return false; return false;
} }