Skip to content

Commit

Permalink
Merge branch '2.16' into 216_buffer_recycler_pool
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 21, 2023
2 parents 61a44e0 + 7adb383 commit 54e9e39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/fasterxml/jackson/core/JsonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ public JsonFactory disable(JsonFactory.Feature f) {
*
* @return True if the specified feature is enabled
*/
@Override
public final boolean isEnabled(JsonFactory.Feature f) {
return (_factoryFeatures & f.getMask()) != 0;
}
Expand Down Expand Up @@ -968,6 +969,7 @@ public final boolean isEnabled(JsonParser.Feature f) {
*
* @since 2.10
*/
@Override
public final boolean isEnabled(StreamReadFeature f) {
return (_parserFeatures & f.mappedFeature().getMask()) != 0;
}
Expand Down Expand Up @@ -1063,6 +1065,7 @@ public final boolean isEnabled(JsonGenerator.Feature f) {
*
* @since 2.10
*/
@Override
public final boolean isEnabled(StreamWriteFeature f) {
return (_generatorFeatures & f.mappedFeature().getMask()) != 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ public abstract class TokenStreamFactory
/**********************************************************************
*/

public abstract boolean isEnabled(JsonFactory.Feature f);

public abstract boolean isEnabled(StreamReadFeature f);
public abstract boolean isEnabled(StreamWriteFeature f);

public abstract boolean isEnabled(JsonParser.Feature f);
public abstract boolean isEnabled(JsonGenerator.Feature f);

Expand Down

0 comments on commit 54e9e39

Please sign in to comment.