poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1879011 - /poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
Date Fri, 19 Jun 2020 21:53:37 GMT
Author: kiwiwings
Date: Fri Jun 19 21:53:37 2020
New Revision: 1879011

URL: http://svn.apache.org/viewvc?rev=1879011&view=rev
Log:
try to fix windows failures

Modified:
    poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java

Modified: poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java?rev=1879011&r1=1879010&r2=1879011&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/hpsf/examples/CopyCompare.java Fri Jun 19 21:53:37
2020
@@ -163,7 +163,7 @@ public final class CopyCompare {
                 // Ensures that the directory hierarchy for a document in a POI fileystem
is in place.
                 // Get the root directory. It does not have to be created since it always
exists in a POIFS.
                 DirectoryEntry de = poiFs.getRoot();
-                if ("/".equals(path.toString())) {
+                if (File.separator.equals(path.toString())) {
                     de.setStorageClsid(event.getStorageClassId());
                 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message