Use String concatenation instead of StringBuffer/Builder
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / util / BitsType.java
index 43b44442af21d4b5bd86791475324bc7bef30085..71fae9ea5445bfd8d68f578c031fa22fa60fe636 100644 (file)
@@ -22,7 +22,9 @@ import org.opendaylight.yangtools.yang.model.api.type.BitsTypeDefinition;
  * The <code>default</code> implementation of Bits Type Definition interface.
  *
  * @see BitsTypeDefinition
+ * @deprecated Use {@link org.opendaylight.yangtools.yang.model.util.type.BaseTypes#bitsTypeBuilder(SchemaPath)} instead
  */
+@Deprecated
 public final class BitsType implements BitsTypeDefinition {
     private static final QName NAME = BaseTypes.BITS_QNAME;
     private static final String DESCRIPTION = "The bits built-in type represents a bit set. "
@@ -80,7 +82,8 @@ public final class BitsType implements BitsTypeDefinition {
      */
     @Override
     public Object getDefaultValue() {
-        return bits;
+        // FIXME: Return real bits.
+        return null;
     }
 
     /*
@@ -171,20 +174,18 @@ public final class BitsType implements BitsTypeDefinition {
 
     @Override
     public String toString() {
-        StringBuilder builder = new StringBuilder();
-        builder.append("BitsType [name=");
-        builder.append(NAME);
-        builder.append(", path=");
-        builder.append(path);
-        builder.append(", description=");
-        builder.append(DESCRIPTION);
-        builder.append(", reference=");
-        builder.append(REFERENCE);
-        builder.append(", bits=");
-        builder.append(bits);
-        builder.append(", units=");
-        builder.append(UNITS);
-        builder.append("]");
-        return builder.toString();
+        return "BitsType [name=" +
+                NAME +
+                ", path=" +
+                path +
+                ", description=" +
+                DESCRIPTION +
+                ", reference=" +
+                REFERENCE +
+                ", bits=" +
+                bits +
+                ", units=" +
+                UNITS +
+                "]";
     }
 }