Skip to content

Commit

Permalink
AVRO-3982: Use String.isEmpty() instead (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko authored Apr 30, 2024
1 parent 3ce1893 commit abf9b88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void writeString(Utf8 utf8) throws IOException {

@Override
public void writeString(String string) throws IOException {
if (0 == string.length()) {
if (string.isEmpty()) {
writeZero();
return;
}
Expand Down

0 comments on commit abf9b88

Please sign in to comment.