Skip to content

Commit ff62345

Browse files
committed
...
1 parent 99d0ab6 commit ff62345

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/tools/jackson/databind/node/FloatNode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Number numberValue() {
7575
@Override
7676
public short shortValue() {
7777
if (!_inShortRange()) {
78-
return _reportShortCoercionRangeFail("shortValue()");
78+
_reportShortCoercionRangeFail("shortValue()");
7979
}
8080
if (_hasFractionalPart()) {
8181
_reportShortCoercionFractionFail("shortValue()");
@@ -86,7 +86,7 @@ public short shortValue() {
8686
@Override
8787
public int intValue() {
8888
if (!_inIntRange()) {
89-
return _reportIntCoercionRangeFail("intValue()");
89+
_reportIntCoercionRangeFail("intValue()");
9090
}
9191
if (_hasFractionalPart()) {
9292
_reportIntCoercionFractionFail("intValue()");
@@ -113,7 +113,7 @@ public OptionalInt intValueOpt() {
113113
@Override
114114
public long longValue() {
115115
if (!_inLongRange()) {
116-
return _reportLongCoercionRangeFail("longValue()");
116+
_reportLongCoercionRangeFail("longValue()");
117117
}
118118
if (_hasFractionalPart()) {
119119
_reportLongCoercionFractionFail("longValue()");

src/main/java/tools/jackson/databind/node/JsonNodeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public ValueNode numberNode(BigInteger v) {
181181
* that expresses given 32-bit floating point value
182182
*/
183183
@Override
184-
public NumericNode numberNode(float v) { return FloatNode.valueOf((float) v); }
184+
public NumericNode numberNode(float v) { return FloatNode.valueOf(v); }
185185

186186
/**
187187
* Alternate factory method that will handle wrapper value, which may

0 commit comments

Comments
 (0)