Skip to content

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

module/jsonurl-core/src/main/java/org/jsonurl/JsonUrl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ private static final String string(
150150
char c;
151151
int b;
152152

153-
switch (c = s.charAt(i)) {
153+
c = s.charAt(i);
154+
155+
switch (c) {
154156
case '\'':
155157
if (quoted) {
156158
needEndQuote = false;

module/jsonurl-core/src/main/java/org/jsonurl/NumberBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ public boolean parse(CharSequence s, int start, int stop) {
295295
decIndexStop = pos = digits(s, pos + 1, stop);
296296
}
297297

298-
switch (exponentType = getExponentType(s, pos, stop)) {
298+
exponentType = getExponentType(s, pos, stop);
299+
300+
switch (exponentType) {
299301
case JUST_VALUE:
300302
expIndexStart = pos + 1;
301303
pos = expIndexStop = digits(s, expIndexStart, stop);

0 commit comments

Comments
 (0)