Revision: 7739
Author: victormote
Date: 2006-06-24 09:29:22 -0700 (Sat, 24 Jun 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7739&view=rev
Log Message:
-----------
Simplify logic a bit.
Modified Paths:
--------------
trunk/foray/foray-common/src/java/org/foray/common/url/FOrayURLStreamHandlerFactory.java
Modified: trunk/foray/foray-common/src/java/org/foray/common/url/FOrayURLStreamHandlerFactory.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/url/FOrayURLStreamHandlerFactory.java 2006-06-24 16:25:17 UTC (rev 7738)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/FOrayURLStreamHandlerFactory.java 2006-06-24 16:29:22 UTC (rev 7739)
@@ -65,13 +65,9 @@
}
public URLStreamHandler createURLStreamHandler(String protocol) {
- Object object = this.protocols.get(protocol);
- if (object == null) {
- /* If we don't know how to instantiate it, return null. Java will
- * then look through the more normal places instead. */
- return null;
- }
- return (URLStreamHandler) object;
+ /* If we don't know about it, null will be returned, and Java will
+ * then look through the more normal places instead. */
+ return (URLStreamHandler) this.protocols.get(protocol);
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|