Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 17, 2015
1 parent 2bb14b8 commit da7f2b7
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ReaderBasedJsonParser // final in 2.3, earlier
* buffer.
*/
protected boolean _bufferRecyclable;

/*
/**********************************************************
/* Configuration
Expand All @@ -60,15 +60,15 @@ public class ReaderBasedJsonParser // final in 2.3, earlier
protected ObjectCodec _objectCodec;

final protected CharsToNameCanonicalizer _symbols;

final protected int _hashSeed;

/*
/**********************************************************
/* Parsing state
/**********************************************************
*/

/**
* Flag that indicates that the current token has not yet
* been fully processed, and needs to be finished for
Expand Down Expand Up @@ -216,7 +216,7 @@ protected void _releaseBuffers() throws IOException {
/* Public API, data access
/**********************************************************
*/

/**
* Method for accessing textual representation of the current event;
* if no current event (before first call to {@link #nextToken}, or
Expand All @@ -238,7 +238,7 @@ public final String getText() throws IOException
}

// // // Let's override default impls for improved performance

// @since 2.1
@Override
public final String getValueAsString() throws IOException
Expand All @@ -255,7 +255,7 @@ public final String getValueAsString() throws IOException
}
return super.getValueAsString(null);
}

// @since 2.1
@Override
public final String getValueAsString(String defValue) throws IOException {
Expand Down Expand Up @@ -308,7 +308,6 @@ public final char[] getTextCharacters() throws IOException
_nameCopied = true;
}
return _nameCopyBuffer;

case ID_STRING:
if (_tokenIncomplete) {
_tokenIncomplete = false;
Expand All @@ -318,7 +317,6 @@ public final char[] getTextCharacters() throws IOException
case ID_NUMBER_INT:
case ID_NUMBER_FLOAT:
return _textBuffer.getTextBuffer();

default:
return _currToken.asCharArray();
}
Expand All @@ -331,7 +329,6 @@ public final int getTextLength() throws IOException
{
if (_currToken != null) { // null only before/after document
switch (_currToken.id()) {

case ID_FIELD_NAME:
return _parsingContext.getCurrentName().length();
case ID_STRING:
Expand All @@ -343,7 +340,6 @@ public final int getTextLength() throws IOException
case ID_NUMBER_INT:
case ID_NUMBER_FLOAT:
return _textBuffer.size();

default:
return _currToken.asCharArray().length;
}
Expand Down Expand Up @@ -404,7 +400,7 @@ public byte[] getBinaryValue(Base64Variant b64variant) throws IOException
}
return _binaryValue;
}

@Override
public int readBinaryValue(Base64Variant b64variant, OutputStream out) throws IOException
{
Expand Down Expand Up @@ -1485,7 +1481,7 @@ private final char _verifyNoLeadingZeroes() throws IOException
// and offline the less common case
return _verifyNLZ2();
}

private char _verifyNLZ2() throws IOException
{
if (_inputPtr >= _inputEnd && !loadMore()) {
Expand Down Expand Up @@ -1571,7 +1567,7 @@ private final void _verifyRootSpace(int ch) throws IOException
}
_reportMissingRootWS(ch);
}

/*
/**********************************************************
/* Internal methods, secondary parsing
Expand Down

0 comments on commit da7f2b7

Please sign in to comment.