commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1752630 - /commons/proper/net/trunk/src/test/java/examples/MainTest.java
Date Thu, 14 Jul 2016 12:03:33 GMT
Author: sebb
Date: Thu Jul 14 12:03:33 2016
New Revision: 1752630

URL: http://svn.apache.org/viewvc?rev=1752630&view=rev
Log:
Overlong line

Modified:
    commons/proper/net/trunk/src/test/java/examples/MainTest.java

Modified: commons/proper/net/trunk/src/test/java/examples/MainTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/examples/MainTest.java?rev=1752630&r1=1752629&r2=1752630&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/examples/MainTest.java (original)
+++ commons/proper/net/trunk/src/test/java/examples/MainTest.java Thu Jul 14 12:03:33 2016
@@ -53,7 +53,8 @@ public class MainTest {
 
     private Properties scanClasses() throws IOException {
         CodeSource codeSource = Main.class.getProtectionDomain().getCodeSource();
-        final String sourceFile = URLDecoder.decode(codeSource.getLocation().getFile(),"UTF-8");
// ensure special characters are decoded OK
+        // ensure special characters are decoded OK by uing the charset
+        final String sourceFile = URLDecoder.decode(codeSource.getLocation().getFile(),"UTF-8");
         Properties p = new Properties();
         if (sourceFile.endsWith(".jar")) {
             JarFile jf = new JarFile(sourceFile);



Mime
View raw message