Skip to content

Commit 55f47b7

Browse files
committed
Warnings removal
1 parent 32e0a67 commit 55f47b7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/test/java/com/fasterxml/jackson/core/io/TestIOContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package com.fasterxml.jackson.core.io;
22

33
import com.fasterxml.jackson.core.StreamReadConstraints;
4+
import com.fasterxml.jackson.core.StreamWriteConstraints;
45
import com.fasterxml.jackson.core.util.BufferRecycler;
56

67
public class TestIOContext
78
extends com.fasterxml.jackson.core.BaseTest
89
{
910
public void testAllocations() throws Exception
1011
{
11-
IOContext ctxt = new IOContext(StreamReadConstraints.defaults(),
12+
IOContext ctxt = new IOContext(StreamReadConstraints.defaults(), StreamWriteConstraints.defaults(),
1213
new BufferRecycler(),
1314
ContentReference.rawReference("N/A"), true);
1415

src/test/java/com/fasterxml/jackson/core/io/UTF8WriterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.junit.Assert;
66

77
import com.fasterxml.jackson.core.StreamReadConstraints;
8+
import com.fasterxml.jackson.core.StreamWriteConstraints;
89
import com.fasterxml.jackson.core.util.BufferRecycler;
910

1011
public class UTF8WriterTest
@@ -150,7 +151,7 @@ private IOContext _ioContext() {
150151
}
151152

152153
private IOContext _ioContext(BufferRecycler br) {
153-
return new IOContext(StreamReadConstraints.defaults(),
154+
return new IOContext(StreamReadConstraints.defaults(), StreamWriteConstraints.defaults(),
154155
br, ContentReference.unknown(), false);
155156
}
156157
}

src/test/java/com/fasterxml/jackson/core/write/UTF8GeneratorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public class UTF8GeneratorTest extends BaseTest
1919
public void testUtf8Issue462() throws Exception
2020
{
2121
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
22-
IOContext ioc = new IOContext(new BufferRecycler(),
22+
IOContext ioc = new IOContext(StreamReadConstraints.defaults(), StreamWriteConstraints.defaults(),
23+
new BufferRecycler(),
2324
ContentReference.rawReference(bytes), true);
2425
JsonGenerator gen = new UTF8JsonGenerator(ioc, 0, null, bytes, '"');
2526
String str = "Natuurlijk is alles gelukt en weer een tevreden klant\uD83D\uDE04";

0 commit comments

Comments
 (0)