Exemplo n.º 1
0
 public final Object read(JsonReader jsonreader)
 {
     if (b == null)
     {
         return a().read(jsonreader);
     }
     jsonreader = Streams.parse(jsonreader);
     if (jsonreader.isJsonNull())
     {
         return null;
     } else
     {
         return b.deserialize(jsonreader, d.getType(), c.deserializationContext);
     }
 }
Exemplo n.º 2
0
 public final void write(JsonWriter jsonwriter, Object obj)
 {
     if (a == null)
     {
         a().write(jsonwriter, obj);
         return;
     }
     if (obj == null)
     {
         jsonwriter.nullValue();
         return;
     } else
     {
         Streams.write(a.serialize(obj, d.getType(), c.serializationContext), jsonwriter);
         return;
     }
 }