Skip to content

Commit 53d4462

Browse files
authored
Merge pull request #289 from KontextWork/feature/allow-any-id-type
Let ID be every type, since it is allowed by
2 parents 07fb1d0 + 3b627c0 commit 53d4462

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/graphql/annotations/processor/typeFunctions/IDFunction.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ public String getTypeName(Class<?> aClass, AnnotatedType annotatedType) {
3030

3131
@Override
3232
public boolean canBuildType(Class<?> aClass, AnnotatedType annotatedType) {
33-
return annotatedType != null
34-
&& (aClass == Integer.class || aClass == int.class || aClass == String.class)
35-
&& annotatedType.isAnnotationPresent(GraphQLID.class);
33+
return annotatedType != null && annotatedType.isAnnotationPresent(GraphQLID.class);
3634
}
3735

3836
@Override

0 commit comments

Comments
 (0)