Fix Eclipse warnings prior to working on bz49884 refactoring
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 12 Sep 2010 08:05:35 +0000 (08:05 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 12 Sep 2010 08:05:35 +0000 (08:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@996261 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11Processor.java
java/org/apache/tomcat/util/net/AbstractEndpoint.java
java/org/apache/tomcat/util/net/JIoEndpoint.java

index 5b6a41f..7a31c9b 100644 (file)
@@ -325,7 +325,7 @@ public class Http11Processor extends AbstractHttp11Processor implements ActionHo
     }
     
     
-    public SocketState asyncDispatch(SocketStatus status) throws IOException {
+    public SocketState asyncDispatch(SocketStatus status) {
 
         RequestInfo rp = request.getRequestProcessor();
         try {
@@ -405,6 +405,7 @@ public class Http11Processor extends AbstractHttp11Processor implements ActionHo
      * @param actionCode Type of the action
      * @param param Action parameter
      */
+    @Override
     public void action(ActionCode actionCode, Object param) {
 
         if (actionCode == ActionCode.ACTION_COMMIT) {
index d2bd6b6..b97e8e3 100644 (file)
@@ -462,15 +462,16 @@ public abstract class AbstractEndpoint {
     public abstract void destroy() throws Exception;
     
     public String adjustRelativePath(String path, String relativeTo) {
-        File f = new File(path);
+        String newPath = path;
+        File f = new File(newPath);
         if ( !f.isAbsolute()) {
-            path = relativeTo + File.separator + path;
-            f = new File(path);
+            newPath = relativeTo + File.separator + newPath;
+            f = new File(newPath);
         }
         if (!f.exists()) {
-            getLog().warn("configured file:["+path+"] does not exist.");
+            getLog().warn("configured file:["+newPath+"] does not exist.");
         }
-        return path;
+        return newPath;
     }
     
     public String defaultIfNull(String val, String defaultValue) {
index 9aade5c..013e1a5 100644 (file)
@@ -239,6 +239,7 @@ public class JIoEndpoint extends AbstractEndpoint {
             this.status = status;
         }
 
+        @Override
         public void run() {
             boolean launch = false;
             try {
@@ -551,6 +552,7 @@ public class JIoEndpoint extends AbstractEndpoint {
             this.cl = cl;
         }
 
+        @Override
         public Void run() {
             Thread.currentThread().setContextClassLoader(cl);
             return null;