Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1146: add missing JsonParserDelegate overrides #1147

Merged
merged 1 commit into from Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions release-notes/CREDITS-2.x
Expand Up @@ -372,3 +372,8 @@ Dai Mikurube (dmikurube@github)
* Contributed #1111: Call the right `filterFinishArray()`/`filterFinishObject()`
from `FilteringParserDelegate`
(2.15.3)

Simon Baslé (simonbasle@github)
* Reported #1146: `JsonParserDelegate` missing overrides for `canParseAsync()`,
`getNonBlockingInputFeeder()`
(2.15.4)
6 changes: 6 additions & 0 deletions release-notes/VERSION-2.x
Expand Up @@ -14,6 +14,12 @@ a pure JSON library.
=== Releases ===
------------------------------------------------------------------------

2.15.4 (not yet released)

#1146: `JsonParserDelegate` missing overrides for `canParseAsync()`,
`getNonBlockingInputFeeder()`
(reported by Simon B)

2.15.3 (12-Oct-2023)

#1111: Call the right `filterFinishArray()`/`filterFinishObject()`
Expand Down
Expand Up @@ -7,6 +7,7 @@
import java.math.BigInteger;

import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.async.NonBlockingInputFeeder;

/**
* Helper class that implements
Expand Down Expand Up @@ -92,9 +93,25 @@ public StreamReadConstraints streamReadConstraints() {
/**********************************************************************
*/

@Override public boolean requiresCustomCodec() { return delegate.requiresCustomCodec(); }
@Override
public boolean canParseAsync() {
return delegate.canParseAsync();
}

@Override
public NonBlockingInputFeeder getNonBlockingInputFeeder() {
return delegate.getNonBlockingInputFeeder();
}

@Override public JacksonFeatureSet<StreamReadCapability> getReadCapabilities() { return delegate.getReadCapabilities(); }
@Override
public JacksonFeatureSet<StreamReadCapability> getReadCapabilities() {
return delegate.getReadCapabilities();
}

@Override
public boolean requiresCustomCodec() {
return delegate.requiresCustomCodec();
}

/*
/**********************************************************************
Expand Down