Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
simschla committed Sep 13, 2018
1 parent f1d1027 commit 4dc8831
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/src/main/java/com/diffplug/spotless/npm/Reflective.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ private Method method(Object target, Class<?> clazz, String methodName, Object[]
if (clazz.getSuperclass() != null) {
return method(target, clazz.getSuperclass(), methodName, parameters);
} else {
// try with primitives
throw new ReflectiveException("Could not find method " + methodName + " with parameters " + Arrays.toString(parameters) + " on object " + target, e);
}
}
Expand All @@ -111,7 +110,6 @@ private Method method(Object target, Class<?> clazz, String methodName, TypedVal
if (clazz.getSuperclass() != null) {
return method(target, clazz.getSuperclass(), methodName, parameters);
} else {
// try with primitives
throw new ReflectiveException("Could not find method " + methodName + " with parameters " + Arrays.toString(parameters) + " on object " + target, e);
}
}
Expand Down

0 comments on commit 4dc8831

Please sign in to comment.