Author: j16sdiz
Date: 2008-12-19 13:22:05 +0000 (Fri, 19 Dec 2008)
New Revision: 24581
Modified:
trunk/freenet/src/freenet/keys/FreenetURI.java
Log:
no else after throw
Modified: trunk/freenet/src/freenet/keys/FreenetURI.java
===================================================================
--- trunk/freenet/src/freenet/keys/FreenetURI.java 2008-12-19 12:58:39 UTC
(rev 24580)
+++ trunk/freenet/src/freenet/keys/FreenetURI.java 2008-12-19 13:22:05 UTC
(rev 24581)
@@ -15,6 +15,7 @@
import java.util.Arrays;
import java.util.LinkedList;
import java.util.StringTokenizer;
+import java.util.regex.Pattern;
import freenet.client.InsertException;
import freenet.support.Base64;
@@ -238,9 +239,8 @@
public FreenetURI(String URI) throws MalformedURLException {
if(URI == null)
throw new MalformedURLException("No URI specified");
- else
- URI = URI.trim();
-
+
+ URI = URI.trim();
if(URI.startsWith("freenet:"))
URI = URI.substring("freenet:".length());
@@ -264,8 +264,8 @@
int atchar = URI.indexOf('@');
if(atchar == -1)
throw new MalformedURLException("There is no @ in that
URI! (" + URI + ')');
- else
- keyType = URI.substring(0,
atchar).toUpperCase().trim().intern();
+
+ keyType = URI.substring(0,
atchar).toUpperCase().trim().intern();
URI = URI.substring(atchar + 1);
boolean validKeyType = false;
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs