Skip to content

Commit

Permalink
Minimize the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 27, 2025
1 parent bfe1fdf commit 4a16a4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/com/fasterxml/jackson/core/base/ParserBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,6 @@ public int getIntValue() throws IOException
}
if ((_numTypesValid & NR_INT) == 0) { // wasn't an int natively?
convertNumberToInt(); // let's make it so, if possible
_numberString = null;
}
}
return _numberInt;
Expand All @@ -805,7 +804,6 @@ public long getLongValue() throws IOException
}
if ((_numTypesValid & NR_LONG) == 0) {
convertNumberToLong();
_numberString = null;
}
}
return _numberLong;
Expand All @@ -820,7 +818,6 @@ public BigInteger getBigIntegerValue() throws IOException
}
if ((_numTypesValid & NR_BIGINT) == 0) {
convertNumberToBigInteger();
_numberString = null;
return _numberBigInt;
}
}
Expand All @@ -844,7 +841,6 @@ public float getFloatValue() throws IOException
}
if ((_numTypesValid & NR_FLOAT) == 0) {
convertNumberToFloat();
_numberString = null;
return _numberFloat;
}
}
Expand All @@ -860,7 +856,6 @@ public double getDoubleValue() throws IOException
}
if ((_numTypesValid & NR_DOUBLE) == 0) {
convertNumberToDouble();
_numberString = null;
return _numberDouble;
}
}
Expand All @@ -876,7 +871,6 @@ public BigDecimal getDecimalValue() throws IOException
}
if ((_numTypesValid & NR_BIGDECIMAL) == 0) {
convertNumberToBigDecimal();
_numberString = null;
return _numberBigDecimal;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void bigDecimal4917Integers() throws Exception
}
}

@Test
public void bigDecimal4917Floats() throws Exception
{
for (int mode : ALL_MODES) {
Expand Down

0 comments on commit 4a16a4a

Please sign in to comment.