]> source.dussan.org Git - poi.git/commitdiff
try to remove goto (again)
authorPJ Fanning <fanningpj@apache.org>
Fri, 24 Sep 2021 15:13:00 +0000 (15:13 +0000)
committerPJ Fanning <fanningpj@apache.org>
Fri, 24 Sep 2021 15:13:00 +0000 (15:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893602 13f79535-47bb-0310-9956-ffa450edef68

poi/src/main/java/org/apache/poi/hssf/usermodel/HeaderFooter.java

index 5bd1b3d0be8f94795370fe01270b78d08a370109..7c9792d9ccfe45ea0e53dadd7d6e615200127040 100644 (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, };