Merge branch 'change-to-if-statement' of https://github.com/ethanwood17/commons-lang
This commit is contained in:
commit
d07e31e05a
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue