Skip to content

Commit

Permalink
Using system arraycopy that was commented for unknown reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
igr committed Jan 17, 2018
1 parent e1c7124 commit b7f62ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jodd-json/src/main/java/jodd/json/JsonParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ protected String parseString() {
}

/**
* Parses string content, once when starting quote has been consumer.
* Parses string content, once when starting quote has been consumed.
*/
protected String parseStringContent(final char quote) {
final int startNdx = ndx;
Expand Down Expand Up @@ -520,10 +520,10 @@ protected String parseStringContent(final char quote) {

growEmpty();

for (int i = startNdx, j = 0; j < textLen; i++, j++) {
text[j] = input[i];
}
//System.arraycopy(input, startNdx, text, 0, textLen);
// for (int i = startNdx, j = 0; j < textLen; i++, j++) {
// text[j] = input[i];
// }
System.arraycopy(input, startNdx, text, 0, textLen);

// escape char, process everything until the end
while (true) {
Expand Down

0 comments on commit b7f62ba

Please sign in to comment.