File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/org/scijava/util Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3121,9 +3121,8 @@ private static Type mapTypeParameters(final Type toMapType,
31213121 while (handlingTypeAndParams instanceof ParameterizedType ) {
31223122 final ParameterizedType pType =
31233123 (ParameterizedType ) handlingTypeAndParams ;
3124- final Class <?> clazz = (Class <?>) pType .getRawType (); // getRawType
3125- // should always
3126- // be Class
3124+ // getRawType should always be Class
3125+ final Class <?> clazz = (Class <?>) pType .getRawType ();
31273126 varMap .addAll (clazz .getTypeParameters (), pType
31283127 .getActualTypeArguments ());
31293128 handlingTypeAndParams = pType .getOwnerType ();
@@ -3516,8 +3515,8 @@ public static Type[] getExactParameterTypes(final Method m,
35163515 final Type [] parameterTypes = m .getGenericParameterTypes ();
35173516 final Type exactDeclaringType = getExactSuperType (capture (type ), m
35183517 .getDeclaringClass ());
3519- if (exactDeclaringType == null ) { // capture(type) is not a subtype of
3520- // m.getDeclaringClass()
3518+ if (exactDeclaringType == null ) {
3519+ // capture(type) is not a subtype of m.getDeclaringClass()
35213520 throw new IllegalArgumentException ("The method " + m +
35223521 " is not a member of type " + type );
35233522 }
You can’t perform that action at this time.
0 commit comments