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:
mguessan 2008-01-31 23:42:04 +00:00
parent 8c4401810d
commit 4ea61fcf1d
1 changed files with 1 additions and 1 deletions

View File

@ -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);