File tree 2 files changed +2
-2
lines changed
main/java/graphql/annotations/processor/retrievers/fieldBuilders
test/java/graphql/annotations/processor/retrievers/fieldBuilders
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public DeprecateBuilder(AccessibleObject object) {
30
30
public String build () {
31
31
GraphQLDeprecate deprecate = object .getAnnotation (GraphQLDeprecate .class );
32
32
if (deprecate != null ) {
33
- return deprecate .value ();
33
+ return deprecate .value (). isEmpty () ? DEFAULT_DEPRECATION_DESCRIPTION : deprecate . value () ;
34
34
}
35
35
if (object .getAnnotation (Deprecated .class ) != null ) {
36
36
return DEFAULT_DEPRECATION_DESCRIPTION ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void build_graphQLDeprecateAnnotationExistsWithNoValue_returnEmptyString(
67
67
String deprecate = deprecateBuilder .build ();
68
68
69
69
// assert
70
- assertEquals (deprecate , "" );
70
+ assertEquals (deprecate , "Deprecated " );
71
71
}
72
72
73
73
@ Test
You can’t perform that action at this time.
0 commit comments