mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Small fixes.
This commit is contained in:
@@ -32,7 +32,7 @@ public class LocalizationAsset extends BaseResource implements LoadableResource,
|
|||||||
private final Map<Locale, ResourceBundle> bundles = new HashMap<>();
|
private final Map<Locale, ResourceBundle> bundles = new HashMap<>();
|
||||||
|
|
||||||
/** Flag indicating whether this asset has been loaded. */
|
/** Flag indicating whether this asset has been loaded. */
|
||||||
private boolean isLoaded = false;
|
private boolean loaded = false;
|
||||||
|
|
||||||
/** Basename of the given asset */
|
/** Basename of the given asset */
|
||||||
private final String baseName = "localization";
|
private final String baseName = "localization";
|
||||||
@@ -53,14 +53,14 @@ public class LocalizationAsset extends BaseResource implements LoadableResource,
|
|||||||
@Override
|
@Override
|
||||||
public void load() {
|
public void load() {
|
||||||
loadFile(getFile());
|
loadFile(getFile());
|
||||||
isLoaded = true;
|
loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Unloads all loaded resource bundles, freeing memory. */
|
/** Unloads all loaded resource bundles, freeing memory. */
|
||||||
@Override
|
@Override
|
||||||
public void unload() {
|
public void unload() {
|
||||||
bundles.clear();
|
bundles.clear();
|
||||||
isLoaded = false;
|
loaded = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -70,7 +70,7 @@ public class LocalizationAsset extends BaseResource implements LoadableResource,
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isLoaded() {
|
public boolean isLoaded() {
|
||||||
return isLoaded;
|
return loaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -131,7 +131,7 @@ public class LocalizationAsset extends BaseResource implements LoadableResource,
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException("Failed to load localization file: " + file, e);
|
throw new RuntimeException("Failed to load localization file: " + file, e);
|
||||||
}
|
}
|
||||||
isLoaded = true;
|
loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user