4849505152535455565758
} public String getTag(Object o) { WriteHandler h = getHandler(o); if (h == null) return null; return h.tag(o); } private WriteHandler getHandler(Object o) { Class c = (o != null) ? o.getClass() : null;
198199200201202203204205206207208
WriteHandler h = getHandler(o); boolean supported = false; if(h != null) { // TODO: maybe remove getWriteHandler call and this check and just call tag String t = h.tag(o); if(t != null) { supported = true; if(t.length() == 1) { switch(t.charAt(0)) { case '_': emitNil(asMapKey, cache); break;
235236237238239240241242243244245
WriteHandler h = getHandler(o); if (h == null) { throw new Exception("Not supported: " + o); } String tag = h.tag(o); if (tag == null) { throw new Exception("Not supported: " + o); } if (tag.length() == 1)
195196197198199200201202203204205
232233234235236237238239240241242