cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r123839 - /cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java
Date Sat, 01 Jan 2005 14:49:47 GMT
Author: antonio
Date: Sat Jan  1 06:49:45 2005
New Revision: 123839

URL: http://svn.apache.org/viewcvs?view=rev&rev=123839
Log:
Don't create new String
Modified:
   cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java
Url: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java?view=diff&rev=123839&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java&r1=123838&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java&r2=123839
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/naming/java/org/apache/cocoon/transformation/LDAPTransformer.java
Sat Jan  1 06:49:45 2005
@@ -1992,7 +1992,7 @@
 
                                                 /* confirm of success */
                                                 transformer.start(attrID, attr);
-                                                transformer.data(new String("replaced"));
+                                                transformer.data("replaced");
                                                 transformer.end(attrID);
                                                 /* Remove the attribute from map after replacing
*/
                                                 attrMap.remove(attrID);
@@ -2016,7 +2016,7 @@
 
                                                     /* confirm of success */
                                                     transformer.start(attrList[i], attr);
-                                                    transformer.data(new String("add"));
+                                                    transformer.data("add");
                                                     transformer.end(attrList[i]);
                                                 }
                                             }
@@ -2057,7 +2057,7 @@
 
                                             /* confirm of success */
                                             transformer.start(attrID, attr);
-                                            transformer.data(new String("replaced"));
+                                            transformer.data("replaced");
                                             transformer.end(attrID);
                                             /* Remove the attribute from map after replacing
*/
                                             attrMap.remove(attrID);
@@ -2076,7 +2076,7 @@
                                                 ctx.modifyAttributes(searchbase, mods);
                                                 /* confirm of success */
                                                 transformer.start(attrList[i], attr);
-                                                transformer.data(new String("add"));
+                                                transformer.data("add");
                                                 transformer.end(attrList[i]);
                                             }
                                         }

Mime
View raw message