Tabs and spaces.

This commit is contained in:
zeeZ 2011-05-16 20:51:18 +08:00 committed by Christian
parent 5e107cccb9
commit 17f5f43772
33 changed files with 306 additions and 306 deletions

View file

@ -13,7 +13,7 @@ public class Json {
appendJson(o, sb);
return sb.toString();
}
public static void appendJson(Object o, StringBuilder s) {
if (o == null) {
s.append("null");
@ -59,7 +59,7 @@ public class Json {
} else if (o instanceof Object) /* TODO: Always true, maybe interface? */ {
s.append("{");
boolean first = true;
Class<?> c = o.getClass();
for(Field field : c.getFields()) {
if (!Modifier.isPublic(field.getModifiers()))
@ -73,7 +73,7 @@ public class Json {
} catch (IllegalAccessException e) {
continue;
}
if (first)
first = false;
else