Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove redundant clauses

  • Loading branch information...
commit d23fc4dbe80d3e94692e938f21cfcb4340f0d1e2 1 parent 89ab12e
@amalloy amalloy authored lancepantz committed
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/jvm/clj_json/JsonExt.java
View
10 src/jvm/clj_json/JsonExt.java
@@ -71,16 +71,8 @@ public void generate(Object obj) throws Exception{
Object key = me.getKey();
if (key instanceof Keyword) {
jg.writeFieldName(((Keyword) key).getName());
- } else if (key instanceof Integer) {
- jg.writeFieldName(((Integer) key).toString());
- } else if (key instanceof BigInteger) {
- jg.writeFieldName(((BigInteger) key).toString());
- } else if (key instanceof BigInt) {
- jg.writeFieldName(((BigInt) key).toString());
- } else if (key instanceof Long) {
- jg.writeFieldName(((Long) key).toString());
} else {
- jg.writeFieldName((String) key);
+ jg.writeFieldName(key.toString());
}
generate(me.getValue());
}
Please sign in to comment.
Something went wrong with that request. Please try again.