Use String concatenation instead of StringBuffer/Builder
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / BinaryType.java
index 044b964f3c34a1674b86a041a783068efa2502fc..1e89697902cca94884191d0e29120886deffd863 100644 (file)
@@ -176,20 +176,18 @@ public final class BinaryType implements BinaryTypeDefinition {
 
     @Override
     public String toString() {
-        StringBuilder builder = new StringBuilder();
-        builder.append("BinaryType [name=");
-        builder.append(QNAME);
-        builder.append(", description=");
-        builder.append(DESCRIPTION);
-        builder.append(", reference=");
-        builder.append(REFERENCE);
-        builder.append(", bytes=");
-        builder.append(bytes);
-        builder.append(", lengthConstraints=");
-        builder.append(lengthConstraints);
-        builder.append(", units=");
-        builder.append(UNITS);
-        builder.append("]");
-        return builder.toString();
+        return "BinaryType [name=" +
+                QNAME +
+                ", description=" +
+                DESCRIPTION +
+                ", reference=" +
+                REFERENCE +
+                ", bytes=" +
+                bytes +
+                ", lengthConstraints=" +
+                lengthConstraints +
+                ", units=" +
+                UNITS +
+                "]";
     }
 }