Skip to content

Commit

Permalink
Fix compilation probs wrt removal of deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 24, 2023
1 parent 38efd6a commit f4de9f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.InputStream;

import tools.jackson.core.ErrorReportConfiguration;
import tools.jackson.core.StreamReadConstraints;
import tools.jackson.core.StreamWriteConstraints;
import tools.jackson.core.exc.StreamReadException;
Expand Down Expand Up @@ -78,6 +79,7 @@ private void _verifyVIntBad(byte[] doc, String... msgs) throws Exception
private SmileParser _minimalParser(byte[] doc) {
IOContext ctxt = new IOContext(StreamReadConstraints.defaults(),
StreamWriteConstraints.defaults(),
ErrorReportConfiguration.defaults(),
null, ContentReference.rawReference(doc), false, null);
return new SmileParser(null, // ObjectReadContext
ctxt, // IOContext
Expand All @@ -90,6 +92,7 @@ private SmileParser _minimalParser(byte[] doc) {
private SmileParser _minimalParser(InputStream in) {
IOContext ctxt = new IOContext(StreamReadConstraints.defaults(),
StreamWriteConstraints.defaults(),
ErrorReportConfiguration.defaults(),
null, ContentReference.rawReference(in), false, null);
return new SmileParser(null, // ObjectReadContext
ctxt, // IOContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public void testGeneratorConstruction() throws Exception
SmileFactory f = new SmileFactory();
IOContext ctxt = new IOContext(StreamReadConstraints.defaults(),
StreamWriteConstraints.defaults(),
ErrorReportConfiguration.defaults(),
f._getBufferRecycler(),
ContentReference.rawReference("doc"), false, null);
OutputStream bytes = new ByteArrayOutputStream();
Expand Down

0 comments on commit f4de9f6

Please sign in to comment.