Skip to content

Commit 4dc8831

Browse files
committed
more cleanup
1 parent f1d1027 commit 4dc8831

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/src/main/java/com/diffplug/spotless/npm/Reflective.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ private Method method(Object target, Class<?> clazz, String methodName, Object[]
9797
if (clazz.getSuperclass() != null) {
9898
return method(target, clazz.getSuperclass(), methodName, parameters);
9999
} else {
100-
// try with primitives
101100
throw new ReflectiveException("Could not find method " + methodName + " with parameters " + Arrays.toString(parameters) + " on object " + target, e);
102101
}
103102
}
@@ -111,7 +110,6 @@ private Method method(Object target, Class<?> clazz, String methodName, TypedVal
111110
if (clazz.getSuperclass() != null) {
112111
return method(target, clazz.getSuperclass(), methodName, parameters);
113112
} else {
114-
// try with primitives
115113
throw new ReflectiveException("Could not find method " + methodName + " with parameters " + Arrays.toString(parameters) + " on object " + target, e);
116114
}
117115
}

0 commit comments

Comments
 (0)