Skip to content

Commit 2b97cd8

Browse files
committed
Fix #676
1 parent 2af2e3e commit 2b97cd8

File tree

3 files changed

+2
-22
lines changed

3 files changed

+2
-22
lines changed

release-notes/VERSION

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ JSON library.
3030
#670: Replace references to "field" in `JsonGenerator`, `JsonParser` method names with "property"
3131
#671: Replace `getCurrentLocation()`/`getTokenLocation()` with
3232
`currentLocation()`/`currentTokenLocation()`
33+
#676: Remove `JsonGenerator.canWriteBinaryNatively()` (replaced by
34+
`StreamWriteCapability.CAN_WRITE_BINARY_NATIVELY`
3335
- Rename `JsonGenerator.Feature.AUTO_CLOSE_JSON_CONTENT` as `AUTO_CLOSE_CONTENT`
3436
- Add `TreeCodec.nullNode()`, `TreeNode.isNull()` methods
3537
- Change the way `JsonLocation.NA` is included in exception messages

src/main/java/com/fasterxml/jackson/core/JsonGenerator.java

-18
Original file line numberDiff line numberDiff line change
@@ -285,24 +285,6 @@ protected JsonGenerator() { }
285285
*/
286286
public boolean canWriteTypeId() { return false; }
287287

288-
/**
289-
* Introspection method that may be called to see if the underlying
290-
* data format supports "native" binary data; that is, an efficient
291-
* output of binary content without encoding.
292-
*<p>
293-
* Default implementation returns false; overridden by data formats
294-
* that do support native binary content.
295-
*
296-
* @return {@code True} if this generator is capable of writing "raw" Binary
297-
* Content
298-
* (this is typically determined by capabilities of the underlying format);
299-
* {@code false} if not
300-
*
301-
* @deprecated In 3.0, will be removed before final
302-
*/
303-
@Deprecated
304-
public boolean canWriteBinaryNatively() { return false; }
305-
306288
/**
307289
* Introspection method to call to check whether it is ok to omit
308290
* writing of Object properties or not. Most formats do allow omission,

src/main/java/com/fasterxml/jackson/core/util/JsonGeneratorDelegate.java

-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ public void assignCurrentValue(Object v) {
7777
@Override
7878
public boolean canWriteObjectId() { return delegate.canWriteObjectId(); }
7979

80-
@Deprecated
81-
@Override
82-
public boolean canWriteBinaryNatively() { return delegate.canWriteBinaryNatively(); }
83-
8480
@Override
8581
public boolean canOmitProperties() { return delegate.canOmitProperties(); }
8682

0 commit comments

Comments
 (0)