diff options
Diffstat (limited to 'configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java')
-rw-r--r-- | configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java b/configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java index 9d8ee58f364..ed68bb7d9d8 100644 --- a/configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java +++ b/configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java @@ -13,30 +13,22 @@ public class DefaultValue { // The variable type. Always set UNLESS the value is null. private DefLine.Type type = null; - /** - * Null value - */ + /** Null value. */ public DefaultValue() { } - /** - * A default value with the given value and type. - */ + /** A default value with the given value and type. */ public DefaultValue(String value, DefLine.Type type) { this.value = value; this.type = type; } - /** - * Returns the toString of the default value. - */ + /** Returns the toString of the default value. */ public String getValue() { return value; } - /** - * Returns the string representation of this value - */ + /** Returns the string representation of this value. */ public String getStringRepresentation() { if (value == null) return "null"; @@ -60,7 +52,7 @@ public class DefaultValue { sb.append(c); } } - return "\"" + sb.toString() + "\""; + return "\"" + sb + "\""; } } |