Merge branch 'change-to-if-statement' of https://github.com/ethanwood17/commons-lang

This commit is contained in:
Rob 2019-04-24 08:09:39 -04:00
commit d07e31e05a
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 char[] c = pattern.toCharArray();
final int lastHold = start; final int lastHold = start;
for (int i = pos.getIndex(); i < pattern.length(); i++) { for (int i = pos.getIndex(); i < pattern.length(); i++) {
switch (c[pos.getIndex()]) { if (c[pos.getIndex()] == QUOTE) {
case QUOTE:
next(pos); next(pos);
return appendTo == null ? null : appendTo.append(c, lastHold, return appendTo == null ? null : appendTo.append(c, lastHold,
pos.getIndex() - lastHold); pos.getIndex() - lastHold);
default: } else {
next(pos); next(pos);
} }
} }