Update Item.java
This commit is contained in:
parent
44776ec440
commit
cbdf599d0a
|
|
@ -36,8 +36,7 @@ public class Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<Item> arrayFrom(String str) {
|
public static List<Item> arrayFrom(String str) {
|
||||||
Type listType = new TypeToken<List<Item>>() {
|
Type listType = new TypeToken<List<Item>>() {}.getType();
|
||||||
}.getType();
|
|
||||||
return new Gson().fromJson(str, listType);
|
return new Gson().fromJson(str, listType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue