Skip to content

Commit 9e2f9bd

Browse files
committed
Warnings removal
1 parent b115599 commit 9e2f9bd

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

src/main/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleMath.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ static double tryHexFloatToDoubleTruncated(boolean isNegative, long significand,
11061106
static class UInt128 {
11071107
final long high, low;
11081108

1109-
private UInt128(long high, long low) {
1109+
UInt128(long high, long low) {
11101110
this.high = high;
11111111
this.low = low;
11121112
}

src/main/java/com/fasterxml/jackson/core/io/doubleparser/FastFloatMath.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import static com.fasterxml.jackson.core.io.doubleparser.FastDoubleMath.fullMultiplication;
1616

1717
/**
18-
* This class complements {@link FastDoubleMath} with methods for
18+
* This class complements {@code FastDoubleMath} with methods for
1919
* converting {@code FloatValue} productions to floats.
2020
* <p>
2121
* See {@link com.fasterxml.jackson.core.io.doubleparser} for a description of

src/main/java/com/fasterxml/jackson/core/io/doubleparser/FloatFromCharSequence.java

+3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ private FloatFromCharSequence() {
2020

2121
}
2222

23+
@Override
2324
long nan() {
2425
return Float.floatToRawIntBits(Float.NaN);
2526
}
2627

28+
@Override
2729
long negativeInfinity() {
2830
return Float.floatToRawIntBits(Float.NEGATIVE_INFINITY);
2931
}
@@ -44,6 +46,7 @@ public float parseFloat(CharSequence str, int offset, int length) throws NumberF
4446
return Float.intBitsToFloat((int) parseFloatValue(str, offset, length));
4547
}
4648

49+
@Override
4750
long positiveInfinity() {
4851
return Float.floatToRawIntBits(Float.POSITIVE_INFINITY);
4952
}

src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserFromCharSequenceLexicallyGeneratedTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected double parse(String str) {
1616
return FastDoubleParser.parseDouble(str);
1717
}
1818

19+
@Override
1920
protected void testAgainstJdk(String str) {
2021
double expected = 0.0;
2122
boolean isExpectedToFail = false;

src/test/java/com/fasterxml/jackson/core/io/doubleparser/FastDoubleParserMaxInputLengthTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static class MaxLengthCharSequence implements CharSequence {
106106
private int startIndex;
107107
private int endIndex;
108108

109-
private MaxLengthCharSequence(String str) {
109+
MaxLengthCharSequence(String str) {
110110
this.str = str;
111111
this.startIndex = 0;
112112
this.endIndex = Integer.MAX_VALUE;

src/test/java/com/fasterxml/jackson/core/read/NumberParsingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ private void _testIssue160LongNumbers(JsonFactory f, String doc, boolean useStre
688688
*/
689689
public void testParsingOfLongerSequencesWithNonNumeric() throws Exception
690690
{
691-
JsonFactory f = jsonFactory().builder()
691+
JsonFactory f = JsonFactory.builder()
692692
.enable(JsonReadFeature.ALLOW_NON_NUMERIC_NUMBERS)
693693
.build();
694694
_testParsingOfLongerSequencesWithNonNumeric(f, MODE_INPUT_STREAM);

0 commit comments

Comments
 (0)