forked from plusone/plusone-commons
修改 toString 方法。
parent
0b80cf34ba
commit
61bd352fd7
|
@ -59,9 +59,7 @@ public abstract class Enumeration<T extends Enumeration<T>> {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("[").append(value).append(": ").append(name).append("]");
|
||||
return builder.toString();
|
||||
return "[" + value + ": " + name + "]";
|
||||
}
|
||||
|
||||
protected static final class EnumerationValuesHolder<T extends Enumeration<T>> {
|
||||
|
|
Loading…
Reference in New Issue