Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public DeprecateBuilder(AccessibleObject object) {
public String build() {
GraphQLDeprecate deprecate = object.getAnnotation(GraphQLDeprecate.class);
if (deprecate != null) {
return deprecate.value();
return deprecate.value().isEmpty() ? DEFAULT_DEPRECATION_DESCRIPTION : deprecate.value();
}
if (object.getAnnotation(Deprecated.class) != null) {
return DEFAULT_DEPRECATION_DESCRIPTION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void build_graphQLDeprecateAnnotationExistsWithNoValue_returnEmptyString(
String deprecate = deprecateBuilder.build();

// assert
assertEquals(deprecate, "");
assertEquals(deprecate, "Deprecated");
}

@Test
Expand Down