svn commit: r1866927 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1866927 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java

jleroux@apache.org
Author: jleroux
Date: Sat Sep 14 08:38:13 2019
New Revision: 1866927

URL: http://svn.apache.org/viewvc?rev=1866927&view=rev
Log:
Improved: no functional change

In my previous commit I forgot I used FileUtile::normalizePath (old name
of now normalizeFilePath) in FileUtile::getFile. This is useless, and reverted
here

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java?rev=1866927&r1=1866926&r2=1866927&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/FileUtil.java Sat Sep 14 08:38:13 2019
@@ -134,7 +134,7 @@ public final class FileUtil {
                 return null;
             }
         }
-        return new File(root, normalizePath(localizePath(path)));
+        return new File(root, localizePath(path));
     }
 
     /**
@@ -415,7 +415,7 @@ public final class FileUtil {
      *
      * @param fileStream
      * @param fileName
-     * @return
+     * @return zipStream
      * @throws IOException
      */
     public static ByteArrayInputStream zipFileStream(InputStream fileStream, String fileName) throws IOException {