try to remove goto (again)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893602 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-09-24 15:13:00 +00:00
parent 64f19851fc
commit cabc8a425c
1 changed files with 1 additions and 3 deletions

View File

@ -40,8 +40,6 @@ public abstract class HeaderFooter implements org.apache.poi.ss.usermodel.Header
String _center = "";
String _right = "";
// FIXME: replace outer goto. just eww.
outer:
while (text.length() > 1) {
if (text.charAt(0) != '&') {
// Mimics the behaviour of Excel, which would put it in the center.
@ -83,7 +81,7 @@ public abstract class HeaderFooter implements org.apache.poi.ss.usermodel.Header
default:
// Mimics the behaviour of Excel, which would put it in the center.
_center = text;
break outer;
break;
}
}
return new String[] { _left, _center, _right, };