Skip to content

Commit 5f89d60

Browse files
committed
Add explicit overrides for JsonParser.getNumberTypeFP()
1 parent 1b8ca46 commit 5f89d60

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

csv/src/main/java/com/fasterxml/jackson/dataformat/csv/CsvParser.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,12 @@ public NumberType getNumberType() throws IOException {
13321332
return _reader.getNumberType();
13331333
}
13341334

1335+
@Override // added in 2.17
1336+
public NumberTypeFP getNumberTypeFP() throws IOException {
1337+
// Could theoretically delegate but for now just do:
1338+
return NumberTypeFP.UNKNOWN;
1339+
}
1340+
13351341
@Override
13361342
public Number getNumberValue() throws IOException {
13371343
return _reader.getNumberValue(false);

properties/src/main/java/com/fasterxml/jackson/dataformat/javaprop/JavaPropsParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ public NumberType getNumberType() throws IOException {
408408
return _noNumbers();
409409
}
410410

411+
@Override // added in 2.17
412+
public NumberTypeFP getNumberTypeFP() throws IOException {
413+
return NumberTypeFP.UNKNOWN;
414+
}
415+
411416
@Override
412417
public int getIntValue() throws IOException {
413418
return _noNumbers();

yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,11 @@ public int readBinaryValue(Base64Variant b64variant, OutputStream out) throws IO
10331033
/**********************************************************************
10341034
*/
10351035

1036+
@Override // added in 2.17
1037+
public NumberTypeFP getNumberTypeFP() throws IOException {
1038+
return NumberTypeFP.UNKNOWN;
1039+
}
1040+
10361041
@Override
10371042
public Object getNumberValueDeferred() throws IOException {
10381043
// 01-Feb-2023, tatu: ParserBase implementation does not quite work

0 commit comments

Comments
 (0)