diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-12-17 21:42:19 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-12-17 21:42:19 +0000 |
commit | bd1d31e410f1ec6bd589e985216167b749158dfd (patch) | |
tree | 2840563849a4d4ee10b45dd7e164ccf003076ed5 /src/java/org/apache/poi/ss/usermodel/DataFormatter.java | |
parent | 0e0d1d56da7d3ad69e80dae199a7f9741b385bb9 (diff) | |
download | poi-bd1d31e410f1ec6bd589e985216167b749158dfd.tar.gz poi-bd1d31e410f1ec6bd589e985216167b749158dfd.zip |
avoid string concats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss/usermodel/DataFormatter.java')
-rw-r--r-- | src/java/org/apache/poi/ss/usermodel/DataFormatter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java index 5f383776b7..10e989e5c5 100644 --- a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java +++ b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java @@ -598,7 +598,7 @@ public class DataFormatter { try { return new ExcelStyleDateFormatter(formatStr, dateSymbols); } catch(IllegalArgumentException iae) { - logger.log(POILogger.DEBUG, "Formatting failed for format " + formatStr + ", falling back", iae); + logger.log(POILogger.DEBUG, "Formatting failed for format ", formatStr, ", falling back", iae); // the pattern could not be parsed correctly, // so fall back to the default number format return getDefaultFormat(cellValue); @@ -758,7 +758,7 @@ public class DataFormatter { try { return new InternalDecimalFormatWithScale(format, symbols); } catch(IllegalArgumentException iae) { - logger.log(POILogger.DEBUG, "Formatting failed for format " + formatStr + ", falling back", iae); + logger.log(POILogger.DEBUG, "Formatting failed for format ", formatStr, ", falling back", iae); // the pattern could not be parsed correctly, // so fall back to the default number format return getDefaultFormat(cellValue); |