Fix remaining Eclipse warnings in o.a.coyote
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 17 Dec 2010 22:06:33 +0000 (22:06 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 17 Dec 2010 22:06:33 +0000 (22:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1050502 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/Response.java
java/org/apache/coyote/http11/Http11NioProtocol.java
java/org/apache/coyote/http11/Http11Protocol.java

index 1661078..9591f8f 100644 (file)
@@ -445,6 +445,7 @@ public final class Response {
      *
      * @param type the content type
      */
+    @SuppressWarnings("deprecation")
     public void setContentType(String type) {
 
         int semicolonIndex = -1;
@@ -466,6 +467,7 @@ public final class Response {
         while (index != -1) {
             semicolonIndex = index;
             index++;
+            // Yes, isSpace() is deprecated but it does exactly what we need
             while (index < len && Character.isSpace(type.charAt(index))) {
                 index++;
             }
index 84cc0a4..533073b 100644 (file)
@@ -219,6 +219,7 @@ public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
             recycledProcessors.clear();
         }
         
+        @Override
         public SSLImplementation getSslImplementation() {
             return proto.sslImplementation;
         }
index 5af2245..7292705 100644 (file)
@@ -151,6 +151,7 @@ public class Http11Protocol extends AbstractHttp11JsseProtocol {
             return global;
         }
 
+        @Override
         public SSLImplementation getSslImplementation() {
             return proto.sslImplementation;
         }