Fix compatibility with older gson versions - closes #222

This commit is contained in:
Luck 2017-04-01 07:26:05 +01:00
parent 24e09fd2d9
commit 0a33c0aac5
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -390,7 +390,7 @@ public class JSONBacking extends FlatfileBacking {
data.addProperty("name", track.getName());
JsonArray groups = new JsonArray();
for (String s : track.getGroups()) {
groups.add(s);
groups.add(new JsonPrimitive(s));
}
data.add("groups", groups);
@ -447,7 +447,7 @@ public class JSONBacking extends FlatfileBacking {
data.addProperty("name", track.getName());
JsonArray groups = new JsonArray();
for (String s : track.getGroups()) {
groups.add(s);
groups.add(new JsonPrimitive(s));
}
data.add("groups", groups);