This commit is contained in:
地平线
2015-06-02 17:01:33 +08:00
parent 067eb09391
commit 00f33c44f3

View File

@@ -40,9 +40,10 @@ public final class EnMember<W extends Writer, T, F> implements Comparable<EnMemb
F value = attribute.get(obj); F value = attribute.get(obj);
if (value == null) return comma; if (value == null) return comma;
if (out.isTiny()) { if (out.isTiny()) {
if (isnumber) { // if (isnumber) {
if (((Number) value).intValue() == 0) return comma; // if (((Number) value).intValue() == 0) return comma;
} else if (istring) { // }
if (istring) {
if (((CharSequence) value).length() == 0) return comma; if (((CharSequence) value).length() == 0) return comma;
} else if (isbool) { } else if (isbool) {
if (!((Boolean) value)) return comma; if (!((Boolean) value)) return comma;