You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2013/09/18 17:25:25 UTC
svn commit: r1524454 -
/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java
Author: ggregory
Date: Wed Sep 18 15:25:25 2013
New Revision: 1524454
URL: http://svn.apache.org/r1524454
Log:
Ctor should throw unchecked UnsupportedCharsetException, not unchecked UnsupportedEncodingException. The Javadoc is still correct.
Modified:
httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java?rev=1524454&r1=1524453&r2=1524454&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java Wed Sep 18 15:25:25 2013
@@ -118,7 +118,7 @@ public class StringEntity extends Abstra
* this instance of the Java virtual machine
*/
public StringEntity(final String string, final String charset)
- throws UnsupportedEncodingException {
+ throws UnsupportedCharsetException {
this(string, ContentType.create(ContentType.TEXT_PLAIN.getMimeType(), charset));
}