Skip to content

Commit 329756d

Browse files
committed
...
1 parent da7f2b7 commit 329756d

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

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

+25-25
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class ReaderBasedJsonParser // final in 2.3, earlier
8585
/**
8686
* Method called when caller wants to provide input buffer directly,
8787
* and it may or may not be recyclable use standard recycle context.
88-
*
88+
*
8989
* @since 2.4
9090
*/
9191
public ReaderBasedJsonParser(IOContext ctxt, int features, Reader r,
@@ -130,7 +130,7 @@ public ReaderBasedJsonParser(IOContext ctxt, int features, Reader r,
130130

131131
@Override public ObjectCodec getCodec() { return _objectCodec; }
132132
@Override public void setCodec(ObjectCodec c) { _objectCodec = c; }
133-
133+
134134
@Override
135135
public int releaseBuffered(Writer w) throws IOException {
136136
int count = _inputEnd - _inputPtr;
@@ -210,7 +210,7 @@ protected void _releaseBuffers() throws IOException {
210210
}
211211
}
212212
}
213-
213+
214214
/*
215215
/**********************************************************
216216
/* Public API, data access
@@ -1043,7 +1043,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
10431043
}
10441044
return (_currToken = _handleOddValue(i));
10451045
}
1046-
1046+
10471047
// note: identical to one in UTF8StreamJsonParser
10481048
@Override
10491049
public final String nextTextValue() throws IOException
@@ -1184,15 +1184,15 @@ protected final JsonToken _parsePosNumber(int ch) throws IOException
11841184
if (ch == INT_0) {
11851185
return _parseNumber2(false, startPtr);
11861186
}
1187-
1187+
11881188
/* First, let's see if the whole number is contained within
11891189
* the input buffer unsplit. This should be the common case;
11901190
* and to simplify processing, we will just reparse contents
11911191
* in the alternative case (number split on buffer boundary)
11921192
*/
1193-
1193+
11941194
int intLen = 1; // already got one
1195-
1195+
11961196
// First let's get the obligatory integer part:
11971197
int_loop:
11981198
while (true) {
@@ -1306,7 +1306,7 @@ protected final JsonToken _parseNegNumber() throws IOException
13061306
return _parseNumber2(true, startPtr);
13071307
}
13081308
int intLen = 1; // already got one
1309-
1309+
13101310
// First let's get the obligatory integer part:
13111311
int_loop:
13121312
while (true) {
@@ -1503,7 +1503,7 @@ private char _verifyNLZ2() throws IOException
15031503
return '0';
15041504
}
15051505
++_inputPtr; // skip previous zero
1506-
if (ch != '0') { // followed by other number; return
1506+
if (ch != '0') { // followed by other number; return
15071507
break;
15081508
}
15091509
}
@@ -1793,7 +1793,7 @@ protected JsonToken _handleOddValue(int i) throws IOException
17931793
_reportUnexpectedChar(i, "expected a valid value (number, String, array, object, 'true', 'false' or 'null')");
17941794
return null;
17951795
}
1796-
1796+
17971797
protected JsonToken _handleApos() throws IOException
17981798
{
17991799
char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();
@@ -1834,7 +1834,7 @@ protected JsonToken _handleApos() throws IOException
18341834
_textBuffer.setCurrentLength(outPtr);
18351835
return JsonToken.VALUE_STRING;
18361836
}
1837-
1837+
18381838
private String _handleOddName2(int startPtr, int hash, int[] codes) throws IOException
18391839
{
18401840
_textBuffer.resetWithShared(_inputBuffer, startPtr, (_inputPtr - startPtr));
@@ -1878,7 +1878,7 @@ private String _handleOddName2(int startPtr, int hash, int[] codes) throws IOExc
18781878
return _symbols.findSymbol(buf, start, len, hash);
18791879
}
18801880
}
1881-
1881+
18821882
@Override
18831883
protected final void _finishString() throws IOException
18841884
{
@@ -2008,7 +2008,7 @@ protected final void _skipString() throws IOException
20082008
/* Internal methods, other parsing
20092009
/**********************************************************
20102010
*/
2011-
2011+
20122012
/**
20132013
* We actually need to check the character value here
20142014
* (to see if we have \n following \r).
@@ -2022,7 +2022,7 @@ protected final void _skipCR() throws IOException {
20222022
++_currInputRow;
20232023
_currInputRowStart = _inputPtr;
20242024
}
2025-
2025+
20262026
private final int _skipColon() throws IOException
20272027
{
20282028
if ((_inputPtr + 4) >= _inputEnd) {
@@ -2044,7 +2044,7 @@ private final int _skipColon() throws IOException
20442044
if (i == INT_SLASH || i == INT_HASH) {
20452045
return _skipColon2(true);
20462046
}
2047-
++_inputPtr;
2047+
++_inputPtr;
20482048
return i;
20492049
}
20502050
}
@@ -2166,7 +2166,7 @@ private final int _skipColonFast(int ptr) throws IOException
21662166
_inputPtr = ptr-1;
21672167
return _skipColon2(gotColon);
21682168
}
2169-
2169+
21702170
// Primary loop: no reloading, comment handling
21712171
private final int _skipComma(int i) throws IOException
21722172
{
@@ -2225,7 +2225,7 @@ private final int _skipAfterComma2() throws IOException
22252225
}
22262226
throw _constructError("Unexpected end-of-input within/between "+_parsingContext.getTypeDesc()+" entries");
22272227
}
2228-
2228+
22292229
private final int _skipWSOrEnd() throws IOException
22302230
{
22312231
// Let's handle first character separately since it is likely that
@@ -2253,7 +2253,7 @@ private final int _skipWSOrEnd() throws IOException
22532253
_throwInvalidSpace(i);
22542254
}
22552255
}
2256-
2256+
22572257
while (_inputPtr < _inputEnd) {
22582258
i = (int) _inputBuffer[_inputPtr++];
22592259
if (i > INT_SPACE) {
@@ -2309,7 +2309,7 @@ private int _skipWSOrEnd2() throws IOException
23092309
}
23102310
}
23112311
}
2312-
2312+
23132313
private void _skipComment() throws IOException
23142314
{
23152315
if (!isEnabled(Feature.ALLOW_COMMENTS)) {
@@ -2368,7 +2368,7 @@ private boolean _skipYAMLComment() throws IOException
23682368
_skipLine();
23692369
return true;
23702370
}
2371-
2371+
23722372
private void _skipLine() throws IOException
23732373
{
23742374
// Ok: need to find EOF or linefeed
@@ -2442,7 +2442,7 @@ protected char _decodeEscaped() throws IOException
24422442
}
24432443
return (char) value;
24442444
}
2445-
2445+
24462446
private final void _matchTrue() throws IOException {
24472447
int ptr = _inputPtr;
24482448
if ((ptr + 3) < _inputEnd) {
@@ -2563,9 +2563,9 @@ protected byte[] _decodeBase64(Base64Variant b64variant) throws IOException
25632563
}
25642564
}
25652565
int decodedData = bits;
2566-
2566+
25672567
// then second base64 char; can't get padding yet, nor ws
2568-
2568+
25692569
if (_inputPtr >= _inputEnd) {
25702570
loadMoreGuaranteed();
25712571
}
@@ -2575,7 +2575,7 @@ protected byte[] _decodeBase64(Base64Variant b64variant) throws IOException
25752575
bits = _decodeBase64Escape(b64variant, ch, 1);
25762576
}
25772577
decodedData = (decodedData << 6) | bits;
2578-
2578+
25792579
// third base64 char; can be padding, but not ws
25802580
if (_inputPtr >= _inputEnd) {
25812581
loadMoreGuaranteed();
@@ -2655,7 +2655,7 @@ protected byte[] _decodeBase64(Base64Variant b64variant) throws IOException
26552655
protected void _reportInvalidToken(String matchedPart) throws IOException {
26562656
_reportInvalidToken(matchedPart, "'null', 'true', 'false' or NaN");
26572657
}
2658-
2658+
26592659
protected void _reportInvalidToken(String matchedPart, String msg) throws IOException
26602660
{
26612661
StringBuilder sb = new StringBuilder(matchedPart);

0 commit comments

Comments
 (0)