Skip to content

Commit

Permalink
Add a utility method
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 17, 2024
1 parent a949925 commit 0b6992c
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;

import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.exc.InputCoercionException;
Expand Down Expand Up @@ -773,6 +774,11 @@ protected final void _throwInternal() {
VersionUtil.throwInternal();
}

// @since 2.17
protected final <T> T _throwInternalReturnAny() {
return VersionUtil.throwInternalReturnAny();
}

protected final JsonParseException _constructError(String msg, Throwable t) {
return new JsonParseException(this, msg, currentLocation(), t);
}
Expand All @@ -788,10 +794,6 @@ protected static byte[] _asciiBytes(String str) {

@Deprecated // since 2.11
protected static String _ascii(byte[] b) {
try {
return new String(b, "US-ASCII");
} catch (IOException e) { // never occurs
throw new RuntimeException(e);
}
return new String(b, StandardCharsets.US_ASCII);
}
}

0 comments on commit 0b6992c

Please sign in to comment.