Skip to content

Commit 142e3c8

Browse files
committed
Minor 3.x change wrt #631
1 parent c3fa50f commit 142e3c8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/com/fasterxml/jackson/core/JsonParser.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -846,12 +846,8 @@ public int getText(Writer writer) throws IOException, UnsupportedOperationExcept
846846
* the current token is not numeric, or if decoding of the value fails
847847
* (invalid format for numbers); plain {@link IOException} if underlying
848848
* content read fails (possible if values are extracted lazily)
849-
*
850-
* @since 2.12
851849
*/
852-
public Number getNumberValueExact() throws IOException {
853-
return getNumberValue();
854-
}
850+
public abstract Number getNumberValueExact() throws IOException;
855851

856852
/**
857853
* If current token is of type

src/main/java/com/fasterxml/jackson/core/base/ParserMinimalBase.java

+5
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,11 @@ public String getValueAsString(String defaultValue) throws IOException {
627627
return getText();
628628
}
629629

630+
@Override
631+
public Number getNumberValueExact() throws IOException {
632+
return getNumberValue();
633+
}
634+
630635
/*
631636
/**********************************************************************
632637
/* Databind callbacks

0 commit comments

Comments
 (0)