Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
#107 removed unnecessary second 'canHandle' check.
  • Loading branch information
Tobias Kammerer committed Jan 16, 2018
commit e90441964e0f571999fdca9a473e7535331b2c3e
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ public boolean canHandle(GraphQLResolver<?> resolver) {

@Override
public Class<?> getTargetClass(GraphQLResolver<?> resolver) {
Class<?> targetClass = resolver.getClass();
if (isGuiceProxy(resolver)) {
return resolver.getClass().getSuperclass();
} else {
return targetClass;
}
return resolver.getClass().getSuperclass();
}

private boolean isGuiceProxy(GraphQLResolver<?> resolver) {
Expand Down