cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r396235 - /cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java
Date Sun, 23 Apr 2006 07:14:35 GMT
Author: antonio
Date: Sun Apr 23 00:14:33 2006
New Revision: 396235

URL: http://svn.apache.org/viewcvs?rev=396235&view=rev
Log:
Don't create new Booleans.

Modified:
    cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java

Modified: cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java?rev=396235&r1=396234&r2=396235&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java
(original)
+++ cocoon/trunk/blocks/cocoon-batik/cocoon-batik-impl/src/main/java/org/apache/cocoon/serialization/SVGSerializer.java
Sun Apr 23 00:14:33 2006
@@ -19,7 +19,6 @@
 import java.io.OutputStream;
 import java.io.Serializable;
 
-import org.apache.avalon.excalibur.pool.Poolable;
 import org.apache.avalon.framework.configuration.Configurable;
 import org.apache.avalon.framework.configuration.Configuration;
 import org.apache.avalon.framework.configuration.ConfigurationException;
@@ -51,7 +50,7 @@
  * @version $Id$
  */
 public class SVGSerializer extends SVGBuilder
-implements Serializer, Configurable, Poolable, CacheableProcessingComponent, Contextualizable
{
+implements Serializer, Configurable, CacheableProcessingComponent, Contextualizable {
 
     /**
      * Get the context
@@ -162,7 +161,7 @@
                     value = new Integer(parameters[i].getAttributeAsInteger("value"));
                 } else if ("BOOLEAN".equals(keyType)) {
                     // Can throw an exception.
-                    value = new Boolean(parameters[i].getAttributeAsBoolean("value"));
+                    value = Boolean.valueOf(parameters[i].getAttributeAsBoolean("value"));
                 } else if ("COLOR".equals(keyType)) {
                     // Can throw an exception
                     String stringValue = parameters[i].getAttribute("value");



Mime
View raw message