Author: markt
Date: Sun Mar 6 22:02:28 2011
New Revision: 1078595
URL: http://svn.apache.org/viewvc?rev=1078595&view=rev
Log:
Clean-up, mainly unused code
Modified:
tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java
Modified:
tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java?rev=1078595&r1=1078594&r2=1078595&view=diff
==============================================================================
---
tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java
(original)
+++
tomcat/trunk/java/org/apache/naming/resources/DirContextURLStreamHandler.java
Sun Mar 6 22:02:28 2011
@@ -31,8 +31,7 @@ import javax.naming.directory.DirContext
* @author <a href="mailto:[email protected]">Remy Maucherat</a>
* @version $Revision$
*/
-public class DirContextURLStreamHandler
- extends URLStreamHandler {
+public class DirContextURLStreamHandler extends URLStreamHandler {
// ----------------------------------------------------------- Constructors
@@ -134,21 +133,6 @@ public class DirContextURLStreamHandler
/**
- * Set the java.protocol.handler.pkgs system property.
- */
- public static void setProtocolHandler() {
- String value = System.getProperty(Constants.PROTOCOL_HANDLER_VARIABLE);
- if (value == null) {
- value = Constants.Package;
- System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value);
- } else if (value.indexOf(Constants.Package) == -1) {
- value += "|" + Constants.Package;
- System.setProperty(Constants.PROTOCOL_HANDLER_VARIABLE, value);
- }
- }
-
-
- /**
* Returns true if the thread or the context class loader of the current
* thread is bound.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]