tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r719549 - /tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Date Fri, 21 Nov 2008 09:33:44 GMT
Author: markt
Date: Fri Nov 21 01:33:44 2008
New Revision: 719549

URL: http://svn.apache.org/viewvc?rev=719549&view=rev
Log:
Clean up
Replace deprecated method calls

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java

Modified: tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?rev=719549&r1=719548&r2=719549&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java Fri Nov 21 01:33:44
2008
@@ -258,9 +258,9 @@
         if (request == null) {
 
             // Create objects
-            request = (Request) connector.createRequest();
+            request = connector.createRequest();
             request.setCoyoteRequest(req);
-            response = (Response) connector.createResponse();
+            response = connector.createResponse();
             response.setCoyoteResponse(res);
 
             // Link objects
@@ -319,7 +319,7 @@
             }
 
         } catch (IOException e) {
-            ;
+            // Ignore
         } catch (Throwable t) {
             log.error(sm.getString("coyoteAdapter.service"), t);
         } finally {
@@ -626,7 +626,7 @@
             }
             if (conv != null) {
                 try {
-                    conv.convert(bc, cc);
+                    conv.convert(bc, cc, cc.getBuffer().length - cc.getEnd());
                     uri.setChars(cc.getBuffer(), cc.getStart(), 
                                  cc.getLength());
                     return;



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


Mime
View raw message