File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/java/tools/jackson/databind/node Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public Number numberValue() {
75
75
@ Override
76
76
public short shortValue () {
77
77
if (!_inShortRange ()) {
78
- return _reportShortCoercionRangeFail ("shortValue()" );
78
+ _reportShortCoercionRangeFail ("shortValue()" );
79
79
}
80
80
if (_hasFractionalPart ()) {
81
81
_reportShortCoercionFractionFail ("shortValue()" );
@@ -86,7 +86,7 @@ public short shortValue() {
86
86
@ Override
87
87
public int intValue () {
88
88
if (!_inIntRange ()) {
89
- return _reportIntCoercionRangeFail ("intValue()" );
89
+ _reportIntCoercionRangeFail ("intValue()" );
90
90
}
91
91
if (_hasFractionalPart ()) {
92
92
_reportIntCoercionFractionFail ("intValue()" );
@@ -113,7 +113,7 @@ public OptionalInt intValueOpt() {
113
113
@ Override
114
114
public long longValue () {
115
115
if (!_inLongRange ()) {
116
- return _reportLongCoercionRangeFail ("longValue()" );
116
+ _reportLongCoercionRangeFail ("longValue()" );
117
117
}
118
118
if (_hasFractionalPart ()) {
119
119
_reportLongCoercionFractionFail ("longValue()" );
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ public ValueNode numberNode(BigInteger v) {
181
181
* that expresses given 32-bit floating point value
182
182
*/
183
183
@ Override
184
- public NumericNode numberNode (float v ) { return FloatNode .valueOf (( float ) v ); }
184
+ public NumericNode numberNode (float v ) { return FloatNode .valueOf (v ); }
185
185
186
186
/**
187
187
* Alternate factory method that will handle wrapper value, which may
You can’t perform that action at this time.
0 commit comments