mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
From David Ashman : useless Integer creation in Settings
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@118 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8c4401810d
commit
4ea61fcf1d
@ -96,7 +96,7 @@ public class Settings {
|
||||
try {
|
||||
String propertyValue = SETTINGS.getProperty(property);
|
||||
if (propertyValue != null && propertyValue.length() > 0) {
|
||||
value = Integer.valueOf(propertyValue);
|
||||
value = Integer.parseInt(propertyValue);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
DavGatewayTray.error("Invalid setting value in " + property, e);
|
||||
|
Loading…
Reference in New Issue
Block a user