Skip to content

Commit cc70bc2

Browse files
committed
Minor warnings removal
1 parent f5ed9e7 commit cc70bc2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/com/fasterxml/jackson/core/json/UTF8JsonGenerator.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public class UTF8JsonGenerator
115115
*/
116116

117117
// @since 2.10
118-
@SuppressWarnings("deprecation")
119118
public UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec,
120119
OutputStream out, char quoteChar)
121120
{
@@ -131,16 +130,15 @@ public UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec,
131130
_outputBuffer = ctxt.allocWriteEncodingBuffer();
132131
_outputEnd = _outputBuffer.length;
133132

134-
/* To be exact, each char can take up to 6 bytes when escaped (Unicode
135-
* escape with backslash, 'u' and 4 hex digits); but to avoid fluctuation,
136-
* we will actually round down to only do up to 1/8 number of chars
137-
*/
133+
// To be exact, each char can take up to 6 bytes when escaped (Unicode
134+
// escape with backslash, 'u' and 4 hex digits); but to avoid fluctuation,
135+
// we will actually round down to only do up to 1/8 number of chars
138136
_outputMaxContiguous = _outputEnd >> 3;
139137
_charBuffer = ctxt.allocConcatBuffer();
140138
_charBufferLength = _charBuffer.length;
141139

142140
// By default we use this feature to determine additional quoting
143-
if (isEnabled(Feature.ESCAPE_NON_ASCII)) {
141+
if (isEnabled(JsonWriteFeature.ESCAPE_NON_ASCII.mappedFeature())) {
144142
setHighestNonEscapedChar(127);
145143
}
146144
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy