You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JsonObject
public class BaseItem {
@JsonField
public int base = 0;
}
@JsonObject
public class Item<T> extends BaseItem {
@JsonField
public T name;
}
`
will compile error:
Cannot assign a value to final variable 'parentObjectMapper'
the error code below:
`
public final class Item$$JsonObjectMapper extends JsonMapper<Item> {
private static final JsonMapper parentObjectMapper = LoganSquare.mapperFor(BaseItem.class);
private final JsonMapper<T> m84ClassJsonMapper;
public Item$$JsonObjectMapper(ParameterizedType type, ParameterizedType TType, SimpleArrayMap<ParameterizedType, JsonMapper> partialMappers) {
partialMappers.put(type, this);
m84ClassJsonMapper = LoganSquare.mapperFor(TType, partialMappers);
parentObjectMapper = LoganSquare.mapperFor(new ParameterizedType<BaseItem>() { }); // This line error
}
`
The text was updated successfully, but these errors were encountered:
`
`
will compile error:
Cannot assign a value to final variable 'parentObjectMapper'
the error code below:
`
public final class Item$$JsonObjectMapper extends JsonMapper<Item> {
private static final JsonMapper parentObjectMapper = LoganSquare.mapperFor(BaseItem.class);
`
The text was updated successfully, but these errors were encountered: