mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-09 22:00:20 +01:00
fix pmd reported violations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user