[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    svn commit: r1524454 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/
From:       ggregory () apache ! org
Date:       2013-09-18 15:25:25
Message-ID: 20130918152525.E7F692388980 () eris ! apache ! org
[Download RAW message or body]

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));  }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic