fix pmd reported violations

This commit is contained in:
Sebastian Sdorra
2010-10-16 13:20:20 +02:00
parent f2499e857d
commit 8f57cd0e31
5 changed files with 33 additions and 14 deletions

View File

@@ -7,6 +7,11 @@
package sonia.scm.agent;
//~--- non-JDK imports --------------------------------------------------------
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
//~--- JDK imports ------------------------------------------------------------
import com.sun.grizzly.http.SelectorThread;
@@ -32,6 +37,9 @@ public class Main
/** Field description */
private static final String DEFAULT_URI = "http://localhost:{0}/";
/** Field description */
private static Logger logger = LoggerFactory.getLogger(Main.class);
//~--- methods --------------------------------------------------------------
/**
@@ -95,7 +103,10 @@ public class Main
{
return Integer.parseInt(port);
}
catch (NumberFormatException e) {}
catch (NumberFormatException ex)
{
logger.debug(ex.getMessage(), ex);
}
}
return defaultPort;