Skip to content

Commit a86653c

Browse files
committed
chore(sonar): fix code smell
1 parent cff0b60 commit a86653c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-java-servlet/src/main/java/graphql/kickstart/servlet/BatchedQueryResponseWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void write(HttpServletRequest request, HttpServletResponse response) thro
2727
// GiB of memory allocation during large response processing.
2828
List<byte[]> serializedResults = new ArrayList<>(2 * results.size() + 1);
2929

30-
if (results.size() > 0) {
30+
if (!results.isEmpty()) {
3131
serializedResults.add("[".getBytes(StandardCharsets.UTF_8));
3232
} else {
3333
serializedResults.add("[]".getBytes(StandardCharsets.UTF_8));

0 commit comments

Comments
 (0)