…lines 1–15 unchanged (15 lines)
16 static {
17 // note: can skip primitive types; other ways to check them:
18 Class<?>[] types = new Class<?>[] {
19 UUID.class,
20 AtomicBoolean.class,
21 StackTraceElement.class,
22 ByteBuffer.class,
23 Void.class
24 };
25 for (Class<?> cls : types) { _classNames.add(cls.getName()); }
26 for (Class<?> cls : FromStringDeserializer.types()) { _classNames.add(cls.getName()); }
27 }
28
29 public static JsonDeserializer<?> find(Class<?> rawType, String clsName)
…lines 30–42 unchanged (13 lines)
43 // (note: AtomicInteger/Long work due to single-arg constructor. For now?
44 return new AtomicBooleanDeserializer();
45 }
46 if (rawType == ByteBuffer.class) {
47 return new ByteBufferDeserializer();
48 }
49 if (rawType == Void.class) {
50 return NullifyingDeserializer.instance;
51 }
52 }
53 return null;
54 }
55}
56