Skip to content

Commit f1d5ff0

Browse files
committed
Manual merge of change in #1221: tiny optimization for JsonPointer, index parse
1 parent bbf249b commit f1d5ff0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/fasterxml/jackson/core/JsonPointer.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,11 @@ private final static int _parseIndex(String str) {
703703
}
704704
}
705705
if (len == 10) {
706-
long l = NumberInput.parseLong(str);
706+
long l = Long.parseLong(str);
707707
if (l > Integer.MAX_VALUE) {
708708
return -1;
709709
}
710+
return (int) l;
710711
}
711712
return NumberInput.parseInt(str);
712713
}

0 commit comments

Comments
 (0)