hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1100668 - in /httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io: TestRequestParser.java TestResponseParser.java
Date Sun, 08 May 2011 01:20:44 GMT
Author: sebb
Date: Sun May  8 01:20:44 2011
New Revision: 1100668

URL: http://svn.apache.org/viewvc?rev=1100668&view=rev
Log:
Suppress impossible NPE warnings

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
    httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java?rev=1100668&r1=1100667&r2=1100668&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestRequestParser.java
Sun May  8 01:20:44 2011
@@ -164,6 +164,7 @@ public class TestRequestParser extends T
         assertNotNull(httprequest);
         assertEquals(5, timeoutCount);
 
+        @SuppressWarnings("null") // httprequest cannot be null here
         RequestLine reqline = httprequest.getRequestLine();
         assertNotNull(reqline);
         assertEquals("GET", reqline.getMethod());

Modified: httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java?rev=1100668&r1=1100667&r2=1100668&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/test/java/org/apache/http/impl/io/TestResponseParser.java
Sun May  8 01:20:44 2011
@@ -160,6 +160,7 @@ public class TestResponseParser extends 
         assertNotNull(httpresponse);
         assertEquals(5, timeoutCount);
 
+        @SuppressWarnings("null") // httpresponse cannot be null here
         StatusLine statusline = httpresponse.getStatusLine();
         assertNotNull(statusline);
         assertEquals(200, statusline.getStatusCode());



Mime
View raw message