Update Config.java
This commit is contained in:
parent
ed63f2babc
commit
997a6980b8
|
|
@ -23,8 +23,7 @@ public class Config {
|
||||||
private int version;
|
private int version;
|
||||||
|
|
||||||
public static List<Config> arrayFrom(String str) {
|
public static List<Config> arrayFrom(String str) {
|
||||||
Type listType = new TypeToken<ArrayList<Config>>() {
|
Type listType = new TypeToken<ArrayList<Config>>() {}.getType();
|
||||||
}.getType();
|
|
||||||
return new Gson().fromJson(str, listType);
|
return new Gson().fromJson(str, listType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue