tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1050502 - in /tomcat/trunk/java/org/apache/coyote: Response.java http11/Http11NioProtocol.java http11/Http11Protocol.java
Date Fri, 17 Dec 2010 22:06:33 GMT
Author: markt
Date: Fri Dec 17 22:06:33 2010
New Revision: 1050502

URL: http://svn.apache.org/viewvc?rev=1050502&view=rev
Log:
Fix remaining Eclipse warnings in o.a.coyote

Modified:
    tomcat/trunk/java/org/apache/coyote/Response.java
    tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
    tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java

Modified: tomcat/trunk/java/org/apache/coyote/Response.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/Response.java?rev=1050502&r1=1050501&r2=1050502&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/Response.java (original)
+++ tomcat/trunk/java/org/apache/coyote/Response.java Fri Dec 17 22:06:33 2010
@@ -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++;
             }

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java?rev=1050502&r1=1050501&r2=1050502&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11NioProtocol.java Fri Dec 17 22:06:33
2010
@@ -219,6 +219,7 @@ public class Http11NioProtocol extends A
             recycledProcessors.clear();
         }
         
+        @Override
         public SSLImplementation getSslImplementation() {
             return proto.sslImplementation;
         }

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java?rev=1050502&r1=1050501&r2=1050502&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java Fri Dec 17 22:06:33 2010
@@ -151,6 +151,7 @@ public class Http11Protocol extends Abst
             return global;
         }
 
+        @Override
         public SSLImplementation getSslImplementation() {
             return proto.sslImplementation;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message