hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1524452 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java
Date Wed, 18 Sep 2013 15:24:04 GMT
Author: ggregory
Date: Wed Sep 18 15:24:04 2013
New Revision: 1524452

URL: http://svn.apache.org/r1524452
Log:
Add missing Javadoc and throws declaration of unchecked exception UnsupportedCharsetException.

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=1524452&r1=1524451&r2=1524452&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:24:04 2013
@@ -58,10 +58,11 @@ public class StringEntity extends Abstra
      *   MIME type {@link ContentType#TEXT_PLAIN} is assumed.
      *
      * @throws IllegalArgumentException if the string parameter is null
-     *
+     * @throws UnsupportedCharsetException Thrown when the named charset is not available
in
+     * this instance of the Java virtual machine
      * @since 4.2
      */
-    public StringEntity(final String string, final ContentType contentType) {
+    public StringEntity(final String string, final ContentType contentType) throws UnsupportedCharsetException
{
         super();
         Args.notNull(string, "Source string");
         Charset charset = contentType != null ? contentType.getCharset() : null;



Mime
View raw message