You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by se...@apache.org on 2014/08/29 01:14:58 UTC

svn commit: r1621226 - in /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http: message/HeaderGroup.java util/EntityUtils.java

Author: sebb
Date: Thu Aug 28 23:14:57 2014
New Revision: 1621226

URL: http://svn.apache.org/r1621226
Log:
Javadoc8 fixes

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java?rev=1621226&r1=1621225&r2=1621226&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/message/HeaderGroup.java Thu Aug 28 23:14:57 2014
@@ -170,7 +170,7 @@ public class HeaderGroup implements Clon
      *
      * @param name the name of the header(s) to get
      *
-     * @return an array of length >= 0
+     * @return an array of length ≥ 0
      */
     public Header[] getHeaders(final String name) {
         final List<Header> headersFound = new ArrayList<Header>();
@@ -231,7 +231,7 @@ public class HeaderGroup implements Clon
     /**
      * Gets all of the headers contained within this group.
      *
-     * @return an array of length >= 0
+     * @return an array of length &ge; 0
      */
     public Header[] getAllHeaders() {
         return headers.toArray(new Header[headers.size()]);

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java?rev=1621226&r1=1621225&r2=1621226&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/util/EntityUtils.java Thu Aug 28 23:14:57 2014
@@ -115,7 +115,7 @@ public final class EntityUtils {
      * @return byte array containing the entity content. May be null if
      *   {@link HttpEntity#getContent()} is null.
      * @throws IOException if an error occurs reading the input stream
-     * @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
+     * @throws IllegalArgumentException if entity is null or if content length &gt; Integer.MAX_VALUE
      */
     public static byte[] toByteArray(final HttpEntity entity) throws IOException {
         Args.notNull(entity, "Entity");
@@ -204,7 +204,7 @@ public final class EntityUtils {
      * @return the entity content as a String. May be null if
      *   {@link HttpEntity#getContent()} is null.
      * @throws ParseException if header elements cannot be parsed
-     * @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
+     * @throws IllegalArgumentException if entity is null or if content length &gt; Integer.MAX_VALUE
      * @throws IOException if an error occurs reading the input stream
      * @throws UnsupportedCharsetException Thrown when the named entity's charset is not available in
      * this instance of the Java virtual machine and no defaultCharset is provided.
@@ -263,7 +263,7 @@ public final class EntityUtils {
      * @return the entity content as a String. May be null if
      *   {@link HttpEntity#getContent()} is null.
      * @throws ParseException if header elements cannot be parsed
-     * @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
+     * @throws IllegalArgumentException if entity is null or if content length &gt; Integer.MAX_VALUE
      * @throws IOException if an error occurs reading the input stream
      * @throws UnsupportedCharsetException Thrown when the named charset is not available in
      * this instance of the Java virtual machine
@@ -281,7 +281,7 @@ public final class EntityUtils {
      * @param entity the entity to convert to a string; must not be null
      * @return String containing the content.
      * @throws ParseException if header elements cannot be parsed
-     * @throws IllegalArgumentException if entity is null or if content length > Integer.MAX_VALUE
+     * @throws IllegalArgumentException if entity is null or if content length &gt; Integer.MAX_VALUE
      * @throws IOException if an error occurs reading the input stream
      * @throws UnsupportedCharsetException Thrown when the named charset is not available in
      * this instance of the Java virtual machine