Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ protected InferableFunction() {
// reflection.
try {
Method methodThatMustBeOverridden =
InferableFunction.class.getDeclaredMethod("apply", new Class[] {Object.class});
Method methodOnSubclass = getClass().getMethod("apply", new Class[] {Object.class});
InferableFunction.class.getDeclaredMethod("apply", Object.class);
Method methodOnSubclass = getClass().getMethod("apply", Object.class);

if (methodOnSubclass.equals(methodThatMustBeOverridden)) {
throw new IllegalStateException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ protected SimpleFunction() {
// reflection.
try {
Method methodThatMustBeOverridden =
SimpleFunction.class.getDeclaredMethod("apply", new Class[] {Object.class});
Method methodOnSubclass = getClass().getMethod("apply", new Class[] {Object.class});
SimpleFunction.class.getDeclaredMethod("apply", Object.class);
Method methodOnSubclass = getClass().getMethod("apply", Object.class);

if (methodOnSubclass.equals(methodThatMustBeOverridden)) {
throw new IllegalStateException(
Expand Down