diff options
Diffstat (limited to 'src/java/org/apache/poi/util/StringUtil.java')
-rw-r--r-- | src/java/org/apache/poi/util/StringUtil.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/util/StringUtil.java b/src/java/org/apache/poi/util/StringUtil.java index afec8225d4..6272c14e50 100644 --- a/src/java/org/apache/poi/util/StringUtil.java +++ b/src/java/org/apache/poi/util/StringUtil.java @@ -271,8 +271,7 @@ public class StringUtil { public static boolean hasMultibyte(String value) { if (value == null) return false; - for (int i = 0; i < value.length(); i++) { - char c = value.charAt(i); + for (char c : value.toCharArray()) { if (c > 0xFF) { return true; } |