#3791: Handle third party tools rewriting integers badly
This commit is contained in:
parent
2a78233cc2
commit
0d153feee7
@ -189,7 +189,9 @@ public class YamlConfig implements ConfigurationAdapter
|
||||
@Override
|
||||
public int getInt(String path, int def)
|
||||
{
|
||||
return get( path, def );
|
||||
// #3791: Sometimes third-party tools rewrite large ints into doubles
|
||||
Number number = get( path, def );
|
||||
return number.intValue();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user