1.5.3
This commit is contained in:
parent
102711037e
commit
a7358d968d
76 changed files with 855 additions and 523 deletions
|
|
@ -18,12 +18,12 @@ public class ActiveConfig {
|
|||
|
||||
public static <T> T getConfigValue(ConfigKey key, Class<T> ignoredType) {
|
||||
Object value = configValues.getOrDefault(key, key.getDefaultValue());
|
||||
|
||||
|
||||
// Handle Integer to Long conversion for config values
|
||||
if (ignoredType == Long.class && value instanceof Integer) {
|
||||
value = ((Integer) value).longValue();
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
return (T) value;
|
||||
} catch (ClassCastException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue