Skip to content

Commit f8920d8

Browse files
committed
Use string literal for assert messages
1 parent 95e7dc9 commit f8920d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/graphql/language/Argument.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public class Argument extends AbstractNode<Argument> implements NamedNode<Argume
3232
@Internal
3333
protected Argument(String name, Value value, @Nullable SourceLocation sourceLocation, List<Comment> comments, IgnoredChars ignoredChars, Map<String, String> additionalData) {
3434
super(sourceLocation, comments, ignoredChars, additionalData);
35-
this.name = assertNotNull(name, () -> "Argument name cannot be null");
36-
this.value = assertNotNull(value, () -> "Argument value cannot be null");
35+
this.name = assertNotNull(name, "Argument name cannot be null");
36+
this.value = assertNotNull(value, "Argument value cannot be null");
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)