cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123965 - /cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java
Date Mon, 03 Jan 2005 13:42:35 GMT
Author: antonio
Date: Mon Jan  3 05:42:33 2005
New Revision: 123965

URL: http://svn.apache.org/viewcvs?view=rev&rev=123965
Log:
Using the static block again to initialize the variable
Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java?view=diff&rev=123965&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java&r1=123964&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java&r2=123965
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/components/url/SourceProtocolHandler.java
Mon Jan  3 05:42:33 2005
@@ -42,7 +42,7 @@
     protected final static InheritableThreadLocal localResolver = new InheritableThreadLocal();
 
     /** Batik's original default handler */        
-    protected final static ParsedURLProtocolHandler defaultHandler = ParsedURL.getHandler(null);
// Keep the default handler, if any
+    protected final static ParsedURLProtocolHandler defaultHandler;
 
     /**
      * Change the default handler used by Batik to resolve URLs to a handler
@@ -56,6 +56,9 @@
      * @param logger the logger for logging.
      */
     static {        
+        // Keep the default handler, if any
+        defaultHandler = ParsedURL.getHandler(null);
+        
         // Set the default handler to our handler
         ParsedURL.registerHandler(new SourceProtocolHandler(null));
 

Mime
View raw message