[prev in list] [next in list] [prev in thread] [next in thread]
List: httpcomponents-commits
Subject: svn commit: r1524452 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/
From: ggregory () apache ! org
Date: 2013-09-18 15:24:04
Message-ID: 20130918152404.6E0DC2388860 () eris ! apache ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic