We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e53e65 commit f9a83d0Copy full SHA for f9a83d0
src/main/java/graphql/annotations/processor/directives/DirectiveCreator.java
@@ -49,11 +49,9 @@ public GraphQLDirective getDirective(Class<?> annotatedClass) {
49
}
50
51
private void buildArguments(GraphQLDirective.Builder builder, Class<?> annotatedClass) {
52
- Arrays.stream(annotatedClass.getDeclaredFields()).forEach(x -> {
53
- if (!x.isSynthetic()) {
54
- builder.argument(directiveArgumentCreator.getArgument(x, annotatedClass));
55
- }
56
- });
+ Arrays.stream(annotatedClass.getDeclaredFields())
+ .filter(x -> !x.isSynthetic())
+ .forEach(x -> builder.argument(directiveArgumentCreator.getArgument(x, annotatedClass)));
57
58
59
private Introspection.DirectiveLocation[] getValidLocations(Class<?> annotatedClass) {
0 commit comments