Exemplo n.º 1
0
 public void write(JsonWriter jsonWriter, Object obj) throws IOException {
   if (obj == null) {
     jsonWriter.nullValue();
     return;
   }
   jsonWriter.beginArray();
   int length = Array.getLength(obj);
   for (int i = 0; i < length; i++) {
     this.componentTypeAdapter.write(jsonWriter, Array.get(obj, i));
   }
   jsonWriter.endArray();
 }