Skip to content

Commit

Permalink
Merge branch '2.18'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 5, 2024
2 parents 167e03a + 8c646d9 commit c169837
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/tools/jackson/core/io/SerializedString.java
Expand Up @@ -2,6 +2,7 @@

import java.io.*;
import java.nio.ByteBuffer;
import java.util.Objects;

import tools.jackson.core.SerializableString;

Expand Down Expand Up @@ -49,10 +50,7 @@ public class SerializedString
protected /*volatile*/ char[] _quotedChars;

public SerializedString(String v) {
if (v == null) {
throw new IllegalStateException("Null String illegal for SerializedString");
}
_value = v;
_value = Objects.requireNonNull(v, "Null String illegal for SerializedString");
}

/*
Expand Down

0 comments on commit c169837

Please sign in to comment.