Skip to content

Commit ad08ff6

Browse files
committed
Minor clean up for #616 test
1 parent 3e0e853 commit ad08ff6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55

66
public class TrailingCommas616Test extends BaseTest
77
{
8-
final JsonFactory f = JsonFactory.builder()
8+
private final JsonFactory JSON_F_ALLOW_MISSING = JsonFactory.builder()
99
.enable(JsonReadFeature.ALLOW_MISSING_VALUES)
1010
.build();
1111

1212
// [core#616]
1313
public void testRootLevelComma616() throws Exception
1414
{
15-
_testRootLevel616(f, MODE_READER);
15+
_testRootLevel616(MODE_READER);
1616
}
1717

1818
public void testRootLevelComma616Bytes() throws Exception
1919
{
20-
_testRootLevel616(f, MODE_INPUT_STREAM);
21-
_testRootLevel616(f, MODE_INPUT_STREAM_THROTTLED);
20+
_testRootLevel616(MODE_INPUT_STREAM);
21+
_testRootLevel616(MODE_INPUT_STREAM_THROTTLED);
2222
}
2323

2424
public void testRootLevelComma616DataInput() throws Exception
2525
{
26-
_testRootLevel616(f, MODE_DATA_INPUT);
26+
_testRootLevel616(MODE_DATA_INPUT);
2727
}
2828

29-
private void _testRootLevel616(JsonFactory f, int mode) throws Exception
29+
private void _testRootLevel616(int mode) throws Exception
3030
{
31-
JsonParser p = createParser(f, mode, ",");
31+
JsonParser p = createParser(JSON_F_ALLOW_MISSING, mode, ",");
3232
try {
3333
p.nextToken();
3434
fail("Should not pass");

0 commit comments

Comments
 (0)