Skip to content

Commit 184005b

Browse files
committed
Types: fix some formatting issues
1 parent 7f386be commit 184005b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/org/scijava/util/Types.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)