commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1749641 - in /commons/proper/bcel/trunk/src/test/java/org/apache/bcel: PerformanceTest.java generic/JDKGenericDumpTestCase.java
Date Wed, 22 Jun 2016 09:00:26 GMT
Author: sebb
Date: Wed Jun 22 09:00:25 2016
New Revision: 1749641

URL: http://svn.apache.org/viewvc?rev=1749641&view=rev
Log:
Don't hard-code file separator

Modified:
    commons/proper/bcel/trunk/src/test/java/org/apache/bcel/PerformanceTest.java
    commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/JDKGenericDumpTestCase.java

Modified: commons/proper/bcel/trunk/src/test/java/org/apache/bcel/PerformanceTest.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/PerformanceTest.java?rev=1749641&r1=1749640&r2=1749641&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/bcel/PerformanceTest.java (original)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/bcel/PerformanceTest.java Wed Jun 22
09:00:25 2016
@@ -132,7 +132,7 @@ public final class PerformanceTest exten
     }
 
     public void testPerformance() {
-        final File javaLib = new File(System.getProperty("java.home") + "/lib");
+        final File javaLib = new File(System.getProperty("java.home"), "lib");
         javaLib.listFiles(new FileFilter() {
 
             @Override

Modified: commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/JDKGenericDumpTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/JDKGenericDumpTestCase.java?rev=1749641&r1=1749640&r2=1749641&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/JDKGenericDumpTestCase.java
(original)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/JDKGenericDumpTestCase.java
Wed Jun 22 09:00:25 2016
@@ -152,7 +152,7 @@ public class JDKGenericDumpTestCase {
     }
 
     private File[] listJDKjars() throws Exception {
-        final File javaLib = new File(javaHome + "/lib");
+        final File javaLib = new File(javaHome, "lib");
         return javaLib.listFiles(new FileFilter() {
             @Override
             public boolean accept(final File file) {



Mime
View raw message