Skip to content

Commit e41641c

Browse files
committed
Add ACCEPT_TAILLING_SPACE flag to JSONParser
1 parent 4f7dc75 commit e41641c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/mvplugins/multiverse/inventories/DataStrings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,6 @@ public static PotionEffect[] parsePotionEffects(String potionsString) {
294294
return potionEffectList.toArray(new PotionEffect[potionEffectList.size()]);
295295
}
296296

297-
private static final JSONParser JSON_PARSER = new JSONParser(JSONParser.USE_INTEGER_STORAGE);
297+
private static final JSONParser JSON_PARSER = new JSONParser(JSONParser.USE_INTEGER_STORAGE | JSONParser.ACCEPT_TAILLING_SPACE);
298298
}
299299

src/main/java/org/mvplugins/multiverse/inventories/FlatFileProfileDataSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FlatFileProfileDataSource implements ProfileDataSource {
4040

4141
private static final String JSON = ".json";
4242

43-
private final JSONParser JSON_PARSER = new JSONParser(JSONParser.USE_INTEGER_STORAGE);
43+
private final JSONParser JSON_PARSER = new JSONParser(JSONParser.USE_INTEGER_STORAGE | JSONParser.ACCEPT_TAILLING_SPACE);
4444

4545
private final ExecutorService fileIOExecutorService = Executors.newSingleThreadExecutor();
4646

0 commit comments

Comments
 (0)