File tree 1 file changed +10
-3
lines changed
cbor/src/main/java/tools/jackson/dataformat/cbor
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public CBORFactory() {
87
87
super (StreamReadConstraints .defaults (),
88
88
StreamWriteConstraints .defaults (),
89
89
ErrorReportConfiguration .defaults (),
90
- 0 ,
90
+ DEFAULT_CBOR_PARSER_FEATURE_FLAGS ,
91
91
DEFAULT_CBOR_GENERATOR_FEATURE_FLAGS );
92
92
}
93
93
@@ -192,9 +192,16 @@ public Class<CBORWriteFeature> getFormatWriteFeatureType() {
192
192
}
193
193
194
194
/**
195
- * Check whether specified generator feature is enabled.
195
+ * Check whether specified CBOR-specific stream read feature is enabled.
196
196
*/
197
- public final boolean isEnabled (CBORWriteFeature f ) {
197
+ public boolean isEnabled (CBORReadFeature f ) {
198
+ return f .enabledIn (_formatReadFeatures );
199
+ }
200
+
201
+ /**
202
+ * Check whether specified CBOR-specific stream write feature is enabled.
203
+ */
204
+ public boolean isEnabled (CBORWriteFeature f ) {
198
205
return f .enabledIn (_formatWriteFeatures );
199
206
}
200
207
You can’t perform that action at this time.
0 commit comments