File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/java/graphql/annotations/processor/retrievers/fieldBuilders
test/java/graphql/annotations/processor/retrievers/fieldBuilders Expand file tree Collapse file tree 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) {
3030 public String build () {
3131 GraphQLDeprecate deprecate = object .getAnnotation (GraphQLDeprecate .class );
3232 if (deprecate != null ) {
33- return deprecate .value ();
33+ return deprecate .value (). isEmpty () ? DEFAULT_DEPRECATION_DESCRIPTION : deprecate . value () ;
3434 }
3535 if (object .getAnnotation (Deprecated .class ) != null ) {
3636 return DEFAULT_DEPRECATION_DESCRIPTION ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void build_graphQLDeprecateAnnotationExistsWithNoValue_returnEmptyString(
6767 String deprecate = deprecateBuilder .build ();
6868
6969 // assert
70- assertEquals (deprecate , "" );
70+ assertEquals (deprecate , "Deprecated " );
7171 }
7272
7373 @ Test
You can’t perform that action at this time.
0 commit comments