Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate strange mistaken code #182

Open
september669 opened this issue Oct 12, 2016 · 0 comments
Open

Generate strange mistaken code #182

september669 opened this issue Oct 12, 2016 · 0 comments

Comments

@september669
Copy link

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<Event.Device> 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;
...
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant