String _center = "";
String _right = "";
+// FIXME: replace outer goto. just eww.
+// no unit tests test the goto loop but poi-integration tests hangs if you remove it
+// (some file has an edge case header or footer)
+ outer:
while (text.length() > 1) {
if (text.charAt(0) != '&') {
// Mimics the behaviour of Excel, which would put it in the center.
default:
// Mimics the behaviour of Excel, which would put it in the center.
_center = text;
- break;
+ break outer;
}
}
return new String[] { _left, _center, _right, };
return _occursInPairs;
}
}
-}
\ No newline at end of file
+}