Changing switch statement to if/else statement for greater clarity

This commit is contained in:
Ethan Wood 2019-04-12 20:25:27 -06:00
parent 24ebbb069b
commit c31dc383c9
1 changed files with 2 additions and 3 deletions

View File

@ -487,12 +487,11 @@ public class ExtendedMessageFormat extends MessageFormat {
final char[] c = pattern.toCharArray();
final int lastHold = start;
for (int i = pos.getIndex(); i < pattern.length(); i++) {
switch (c[pos.getIndex()]) {
case QUOTE:
if (c[pos.getIndex()] == QUOTE) {
next(pos);
return appendTo == null ? null : appendTo.append(c, lastHold,
pos.getIndex() - lastHold);
default:
} else {
next(pos);
}
}