commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1067735 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
Date Sun, 06 Feb 2011 19:32:14 GMT
Author: simonetripodi
Date: Sun Feb  6 19:32:13 2011
New Revision: 1067735

URL: http://svn.apache.org/viewvc?rev=1067735&view=rev
Log:
simplified toString() method implementation

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java?rev=1067735&r1=1067734&r2=1067735&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/FactoryCreateRule.java
Sun Feb  6 19:32:13 2011
@@ -168,17 +168,10 @@ public class FactoryCreateRule extends R
      */
     @Override
     public String toString() {
-        StringBuilder sb = new StringBuilder("FactoryCreateRule[")
-            .append("className=")
-            .append(this.className)
-            .append(", attributeName=")
-            .append(this.attributeName);
-        if (this.creationFactory != null) {
-            sb.append(", creationFactory=");
-            sb.append(this.creationFactory);
-        }
-        sb.append("]");
-        return (sb.toString());
+        return String.format("FactoryCreateRule[className=%s, attributeName=%s, creationFactory=%s]",
+                this.className,
+                this.attributeName,
+                this.creationFactory);
     }
 
     /**



Mime
View raw message