Author: j16sdiz
Date: 2008-12-19 13:23:43 +0000 (Fri, 19 Dec 2008)
New Revision: 24585

Modified:
   trunk/freenet/src/freenet/keys/FreenetURI.java
Log:
optimization: find char, not String

Modified: trunk/freenet/src/freenet/keys/FreenetURI.java
===================================================================
--- trunk/freenet/src/freenet/keys/FreenetURI.java      2008-12-19 13:23:20 UTC 
(rev 24584)
+++ trunk/freenet/src/freenet/keys/FreenetURI.java      2008-12-19 13:23:43 UTC 
(rev 24585)
@@ -284,7 +284,7 @@
                ArrayList<String> sv = null;
                int slash2;
                sv = new ArrayList<String>();
-               while((slash2 = URI.lastIndexOf("/")) != -1) {
+               while ((slash2 = URI.lastIndexOf('/')) != -1) {
                        String s;
                        try {
                                s = URLDecoder.decode(URI.substring(slash2 + 1 
/* "/".length() */), true);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to