Fix Eclipse warnings
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Oct 2010 11:15:56 +0000 (11:15 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Oct 2010 11:15:56 +0000 (11:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1003485 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java

index 00bc156..8d21723 100644 (file)
@@ -167,6 +167,7 @@ public class JmxRemoteLifecycleListener implements LifecycleListener {
     }
     
 
+    @Override
     public void lifecycleEvent(LifecycleEvent event) {
         // When the server starts, configure JMX/RMI
         if (Lifecycle.START_EVENT == event.getType()) {
@@ -284,6 +285,8 @@ public class JmxRemoteLifecycleListener implements LifecycleListener {
 
     public static class RmiClientLocalhostSocketFactory
     implements RMIClientSocketFactory, Serializable {
+        private static final long serialVersionUID = 1L;
+
         private static final String FORCED_HOST = "localhost";
 
         private RMIClientSocketFactory factory = null;
@@ -292,6 +295,7 @@ public class JmxRemoteLifecycleListener implements LifecycleListener {
             factory = theFactory;
         }
 
+        @Override
         public Socket createSocket(String host, int port) throws IOException {
             if (factory == null) {
                 return new Socket(FORCED_HOST, port);