Skip to content

Commit 1f9879c

Browse files
committed
Refactor
1 parent 7c91cb8 commit 1f9879c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/cdpn/jsonautorepair/internal/EscapeProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private void handleQuoteCharacter(char currentChar, int i) {
5252
}
5353

5454
private void handleQuoteNextToQuoteCase(char currentChar, int i) {
55-
int nextQuotePosition = getNextNoneSpaceCharPosition(i + 1);
55+
int nextQuotePosition = getNextNonSpaceCharPosition(i + 1);
5656
// If next valid quote is a good close quote, then the current quote MUST be an escaped quote
5757
if(isValidCloseQuote(nextQuotePosition)) {
5858
escapedJson.append(ESCAPE_CHAR);
@@ -72,7 +72,7 @@ private boolean hasNextQuoteRightAfterCurrentQuoteWithoutComma(int position) {
7272
return findNextValidChar(position + 1) == DOUBLE_QUOTE_CHAR;
7373
}
7474

75-
private int getNextNoneSpaceCharPosition(int position) {
75+
private int getNextNonSpaceCharPosition(int position) {
7676
for (int i = position; i < inputString.length(); i++) {
7777
char currentChar = inputString.charAt(i);
7878
if (currentChar != SPACE_CHAR && currentChar != BREAK_LINE_CHAR && currentChar != TAB_CHAR) {

0 commit comments

Comments
 (0)