mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 15:14:49 +00:00
Checkstyle fix
This commit is contained in:
@@ -1462,7 +1462,7 @@ public final class Configuration {
|
||||
Object value = null;
|
||||
if (config.containsKey(name)) {
|
||||
value = config.get(name);
|
||||
|
||||
|
||||
Class<?> type = ConfigurationItem.getConfigurationFieldType(field);
|
||||
if (value != null && !type.isAssignableFrom(value.getClass())) {
|
||||
System.out.println("Configuration item has a wrong type: " + name + " expected: " + type.getSimpleName() + " actual: " + value.getClass().getSimpleName());
|
||||
@@ -1496,8 +1496,9 @@ public final class Configuration {
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads configuration from specific file. If it has .bin extension,
|
||||
* it uses legacy storage, else it uses TOML storage.
|
||||
* Loads configuration from specific file. If it has .bin extension, it uses
|
||||
* legacy storage, else it uses TOML storage.
|
||||
*
|
||||
* @param file File to load from
|
||||
*/
|
||||
public static void loadFromFile(String file) {
|
||||
|
||||
@@ -241,8 +241,9 @@ public class TomlConfigurationStorage implements ConfigurationStorage {
|
||||
|
||||
@Override
|
||||
public void saveToFile(String file) {
|
||||
saveToFile(file, null, null);
|
||||
saveToFile(file, null, null);
|
||||
}
|
||||
|
||||
public void saveToFile(String file, Boolean showComments, Boolean modifiedOnly) {
|
||||
if (new File(file).exists() && (showComments == null || modifiedOnly == null)) {
|
||||
TomlParseResult tomlResult;
|
||||
|
||||
Reference in New Issue
Block a user