bluelinelabs / LoganSquare

Screaming fast JSON parsing and serialization library for Android.
Apache License 2.0
3.21k stars 306 forks source link

Generate strange mistaken code #182

Open september669 opened 8 years ago

september669 commented 8 years ago

Generated code with error: ` import ru.rhonda.dvr.cloudclient.camera.rest.jsonPojo.Event; -- THIS IS PACKAGE!

@SuppressWarnings("unsafe,unchecked") public final class Data$$JsonObjectMapper extends JsonMapper { private static final JsonMapper RU_XXXXXX_XX_XXX_XXX_REST_JSONPOJO_EVENT_DEVICE__JSONOBJECTMAPPER = LoganSquare.mapperFor(Event.Device.class);

... } `

Its generated when used model like this :

` @JsonObject public class Event {

@JsonField(name = "type")
public String type;

@JsonField(name = "timestamp")
public Long timestamp;

@JsonField(name = "data")
public Data data;

... }

@JsonObject public class Data {

@JsonField(name = "id")
public String id;

@JsonField(name = "timestamp")
public Long timestamp;

... @JsonField(name = "device") public Device device; ... } `