hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1718076 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java
Date Sat, 05 Dec 2015 12:48:18 GMT
Author: olegk
Date: Sat Dec  5 12:48:18 2015
New Revision: 1718076

URL: http://svn.apache.org/viewvc?rev=1718076&view=rev
Log:
Removed IllegalStateException from method declarations

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java?rev=1718076&r1=1718075&r2=1718076&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java
Sat Dec  5 12:48:18 2015
@@ -78,30 +78,21 @@ public interface HttpResponse extends Ht
      *
      * @param code the HTTP status code.
      *
-     * @throws IllegalStateException
-     *          if the status line has not be set
-     *
      * @see HttpStatus
      * @see #setStatusLine(StatusLine)
      * @see #setStatusLine(ProtocolVersion,int)
      */
-    void setStatusCode(int code)
-        throws IllegalStateException;
+    void setStatusCode(int code);
 
     /**
      * Updates the status line of this response with a new reason phrase.
      *
      * @param reason    the new reason phrase as a single-line string, or
      *                  {@code null} to unset the reason phrase
-     *
-     * @throws IllegalStateException
-     *          if the status line has not be set
-     *
      * @see #setStatusLine(StatusLine)
      * @see #setStatusLine(ProtocolVersion,int)
      */
-    void setReasonPhrase(String reason)
-        throws IllegalStateException;
+    void setReasonPhrase(String reason);
 
     /**
      * Obtains the locale of this response.



Mime
View raw message