Skip to content

Commit

Permalink
@GraphQLIgnore should affect auto discovery only if applied directly
Browse files Browse the repository at this point in the history
Fixes #288
  • Loading branch information
kaqqao committed Jul 10, 2019
1 parent 3a48a6d commit 4546c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/leangen/graphql/util/ClassFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ClassFinder {
public final static Predicate<ClassInfo> CONCRETE = info -> !info.isAbstract() && !info.isInterface();

public final static Predicate<ClassInfo> NON_IGNORED = info ->
info.getAnnotations().stream().noneMatch(ann -> ann.getName().equals(GraphQLIgnore.class.getName()));
info.getAnnotations().directOnly().stream().noneMatch(ann -> ann.getName().equals(GraphQLIgnore.class.getName()));

public final static Predicate<ClassInfo> PUBLIC = ClassInfo::isPublic;

Expand Down

0 comments on commit 4546c36

Please sign in to comment.