Make Integer.class work when deserializing config
This commit is contained in:
committed by
Tomas Slusny
parent
601128c1e7
commit
e1453e59e1
@@ -748,7 +748,7 @@ public class ConfigManager
|
|||||||
{
|
{
|
||||||
return Boolean.parseBoolean(str);
|
return Boolean.parseBoolean(str);
|
||||||
}
|
}
|
||||||
if (type == int.class)
|
if (type == int.class || type == Integer.class)
|
||||||
{
|
{
|
||||||
return Integer.parseInt(str);
|
return Integer.parseInt(str);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user