diff options
author | David North <dnorth@apache.org> | 2015-09-09 17:27:49 +0000 |
---|---|---|
committer | David North <dnorth@apache.org> | 2015-09-09 17:27:49 +0000 |
commit | 91e804553b72900a14ffbf702474c077c4b94c2f (patch) | |
tree | 8cbb0a0b837c5848ec8948034d61fbfbd1eb0d5f | |
parent | 1a0365739ffe41bdbd7faa6fd1b81e7460d01eed (diff) | |
download | poi-91e804553b72900a14ffbf702474c077c4b94c2f.tar.gz poi-91e804553b72900a14ffbf702474c077c4b94c2f.zip |
Patch from https://bz.apache.org/bugzilla/show_bug.cgi?id=58347 - s/arg/filename for a more descriptive filename
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1702060 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/poi/hssf/dev/ReSave.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/poi/hssf/dev/ReSave.java b/src/java/org/apache/poi/hssf/dev/ReSave.java index 7e74b7a3a6..9c136ab6ba 100644 --- a/src/java/org/apache/poi/hssf/dev/ReSave.java +++ b/src/java/org/apache/poi/hssf/dev/ReSave.java @@ -33,11 +33,11 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; public class ReSave { public static void main(String[] args) throws Exception { boolean initDrawing = false; - for(String arg : args) { - if(arg.equals("-dg")) initDrawing = true; + for(String filename : args) { + if(filename.equals("-dg")) initDrawing = true; else { - System.out.print("reading " + arg + "..."); - FileInputStream is = new FileInputStream(arg); + System.out.print("reading " + filename + "..."); + FileInputStream is = new FileInputStream(filename); HSSFWorkbook wb = new HSSFWorkbook(is); try { System.out.println("done"); @@ -49,7 +49,7 @@ public class ReSave { } } - String outputFile = arg.replace(".xls", "-saved.xls"); + String outputFile = filename.replace(".xls", "-saved.xls"); System.out.print("saving to " + outputFile + "..."); FileOutputStream out = new FileOutputStream(outputFile); try { |