Main.java:3: error: class DataModelDeserializer is public, should be declared in a file named DataModelDeserializer.java
public class DataModelDeserializer<T> implements JsonDeserializer<T> {
^
Main.java:21: error: class DataModel is public, should be declared in a file named DataModel.java
public class DataModel {
^
Main.java:36: error: class Response is public, should be declared in a file named Response.java
public class Response<T> {
^
Main.java:56: error: class Items is public, should be declared in a file named Items.java
public class Items {
^
Main.java:3: error: cannot find symbol
public class DataModelDeserializer<T> implements JsonDeserializer<T> {
^
symbol: class JsonDeserializer
Main.java:6: error: cannot find symbol
public T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
^
symbol: class JsonElement
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:6: error: cannot find symbol
public T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
^
symbol: class Type
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:6: error: cannot find symbol
public T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
^
symbol: class JsonDeserializationContext
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:6: error: cannot find symbol
public T deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {
^
symbol: class JsonParseException
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:38: error: cannot find symbol
private List<T> items=new ArrayList<T>();
^
symbol: class List
location: class Response<T>
where T is a type-variable:
T extends Object declared in class Response
Main.java:47: error: cannot find symbol
public List<T> getItems() {
^
symbol: class List
location: class Response<T>
where T is a type-variable:
T extends Object declared in class Response
Main.java:51: error: cannot find symbol
public void setItems(List<T> items) {
^
symbol: class List
location: class Response<T>
where T is a type-variable:
T extends Object declared in class Response
Main.java:5: error: method does not override or implement a method from a supertype
@Override
^
Main.java:7: error: cannot find symbol
JsonElement items=null;
^
symbol: class JsonElement
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:14: error: cannot find symbol
throw new JsonIOException("Check your profile.");
^
symbol: class JsonIOException
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:17: error: cannot find symbol
return new Gson().fromJson(items, type);
^
symbol: class Gson
location: class DataModelDeserializer<T>
where T is a type-variable:
T extends Object declared in class DataModelDeserializer
Main.java:38: error: cannot find symbol
private List<T> items=new ArrayList<T>();
^
symbol: class ArrayList
location: class Response<T>
where T is a type-variable:
T extends Object declared in class Response
17 errors