hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1524454 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java
Date Wed, 18 Sep 2013 15:25:25 GMT
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));
     }
 



Mime
View raw message