diff options
author | Axel Howind <axh@apache.org> | 2020-02-20 15:51:17 +0000 |
---|---|---|
committer | Axel Howind <axh@apache.org> | 2020-02-20 15:51:17 +0000 |
commit | 842e71a3d736049f55fdd8d86514715390405606 (patch) | |
tree | d895fc18838e4ac94ea5fb8307f785618d86df8b /src/examples | |
parent | 09d55c783206a798f7b77d9c91182f7e6c55e1a3 (diff) | |
download | poi-842e71a3d736049f55fdd8d86514715390405606.tar.gz poi-842e71a3d736049f55fdd8d86514715390405606.zip |
use indexOf(char) instead of indexOf(String) where possible; replace one more StringBuffer with StringBuilder - bug 63805
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874262 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/ss/examples/ToCSV.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/src/org/apache/poi/ss/examples/ToCSV.java b/src/examples/src/org/apache/poi/ss/examples/ToCSV.java index bae9056c95..408a6a3ff3 100644 --- a/src/examples/src/org/apache/poi/ss/examples/ToCSV.java +++ b/src/examples/src/org/apache/poi/ss/examples/ToCSV.java @@ -346,7 +346,7 @@ public class ToCSV { // Simply replace the .xls or .xlsx file extension with .csv destinationFilename = excelFile.getName(); destinationFilename = destinationFilename.substring( - 0, destinationFilename.lastIndexOf(".")) + + 0, destinationFilename.lastIndexOf('.')) + ToCSV.CSV_FILE_EXTENSION; // Save the CSV file away using the newly constricted file name |