You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2015/12/05 13:48:18 UTC
svn commit: r1718076 -
/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/hc/core5/http/HttpResponse.java
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.