@@ -448,15 +448,7 @@ public void testBigNumbers() throws Exception
448
448
449
449
public void testBigIntegerWithENotation () throws Exception {
450
450
final String DOC = "1e5 " ;
451
-
452
- final int [] modes = new int []{
453
- MODE_INPUT_STREAM ,
454
- MODE_INPUT_STREAM_THROTTLED ,
455
- MODE_READER ,
456
- MODE_READER_THROTTLED ,
457
- MODE_DATA_INPUT
458
- };
459
- for (int mode : modes ) {
451
+ for (int mode : ALL_MODES ) {
460
452
try (JsonParser p = createParser (jsonFactory (), mode , DOC )) {
461
453
assertToken (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
462
454
assertEquals (100000L , p .getBigIntegerValue ().longValue ());
@@ -466,15 +458,7 @@ public void testBigIntegerWithENotation() throws Exception {
466
458
467
459
public void testLongWithENotation () throws Exception {
468
460
final String DOC = "1e5 " ;
469
-
470
- final int [] modes = new int []{
471
- MODE_INPUT_STREAM ,
472
- MODE_INPUT_STREAM_THROTTLED ,
473
- MODE_READER ,
474
- MODE_READER_THROTTLED ,
475
- MODE_DATA_INPUT
476
- };
477
- for (int mode : modes ) {
461
+ for (int mode : ALL_MODES ) {
478
462
try (JsonParser p = createParser (jsonFactory (), mode , DOC )) {
479
463
assertToken (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
480
464
assertEquals (100000L , p .getLongValue ());
@@ -484,15 +468,7 @@ public void testLongWithENotation() throws Exception {
484
468
485
469
public void testIntWithENotation () throws Exception {
486
470
final String DOC = "1e5 " ;
487
-
488
- final int [] modes = new int []{
489
- MODE_INPUT_STREAM ,
490
- MODE_INPUT_STREAM_THROTTLED ,
491
- MODE_READER ,
492
- MODE_READER_THROTTLED ,
493
- MODE_DATA_INPUT
494
- };
495
- for (int mode : modes ) {
471
+ for (int mode : ALL_MODES ) {
496
472
try (JsonParser p = createParser (jsonFactory (), mode , DOC )) {
497
473
assertToken (JsonToken .VALUE_NUMBER_FLOAT , p .nextToken ());
498
474
assertEquals (100000 , p .getIntValue ());
0 commit comments