Skip to content

Commit

Permalink
Fix a Yoda condition to placate Error Prone. (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonnmcmanus committed May 1, 2024
1 parent e838516 commit 749d22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gson/src/main/java/com/google/gson/stream/JsonReader.java
Expand Up @@ -1177,7 +1177,7 @@ private String nextUnquotedValue() throws IOException {
}

String result =
(null == builder) ? new String(buffer, pos, i) : builder.append(buffer, pos, i).toString();
(builder == null) ? new String(buffer, pos, i) : builder.append(buffer, pos, i).toString();
pos += i;
return result;
}
Expand Down

0 comments on commit 749d22f

Please sign in to comment.