@@ -27,27 +27,27 @@ private void _testOffsetInArrays(boolean useBytes) throws Exception
27
27
p = useBytes ? JSON_F .createParser (ObjectReadContext .empty (), DOC .getBytes ("UTF-8" ))
28
28
: JSON_F .createParser (ObjectReadContext .empty (), DOC .toCharArray ());
29
29
assertToken (JsonToken .START_ARRAY , p .nextToken ());
30
- _assertLocation (useBytes , p .getTokenLocation (), 2L , 1 , 3 );
30
+ _assertLocation (useBytes , p .currentTokenLocation (), 2L , 1 , 3 );
31
31
_assertLocation (useBytes , p .currentLocation (), 3L , 1 , 4 );
32
32
33
33
assertToken (JsonToken .VALUE_NUMBER_INT , p .nextToken ());
34
- _assertLocation (useBytes , p .getTokenLocation (), 3L , 1 , 4 );
34
+ _assertLocation (useBytes , p .currentTokenLocation (), 3L , 1 , 4 );
35
35
assertEquals (10 , p .getIntValue ()); // just to ensure read proceeds to end
36
36
// 2-digits so
37
37
_assertLocation (useBytes , p .currentLocation (), 5L , 1 , 6 );
38
38
39
39
assertToken (JsonToken .VALUE_NUMBER_INT , p .nextToken ());
40
- _assertLocation (useBytes , p .getTokenLocation (), 7L , 1 , 8 );
40
+ _assertLocation (useBytes , p .currentTokenLocation (), 7L , 1 , 8 );
41
41
assertEquals (251 , p .getIntValue ()); // just to ensure read proceeds to end
42
42
_assertLocation (useBytes , p .currentLocation (), 10L , 1 , 11 );
43
43
44
44
assertToken (JsonToken .VALUE_NUMBER_INT , p .nextToken ());
45
- _assertLocation (useBytes , p .getTokenLocation (), 15L , 2 , 4 );
45
+ _assertLocation (useBytes , p .currentTokenLocation (), 15L , 2 , 4 );
46
46
assertEquals (3 , p .getIntValue ());
47
47
_assertLocation (useBytes , p .currentLocation (), 16L , 2 , 5 );
48
48
49
49
assertToken (JsonToken .END_ARRAY , p .nextToken ());
50
- _assertLocation (useBytes , p .getTokenLocation (), 18L , 2 , 7 );
50
+ _assertLocation (useBytes , p .currentTokenLocation (), 18L , 2 , 7 );
51
51
_assertLocation (useBytes , p .currentLocation (), 19L , 2 , 8 );
52
52
53
53
p .close ();
0 commit comments