You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/09/10 16:26:56 UTC
[commons-io] branch master updated: [IO-686]
IOUtils.toByteArray(InputStream) Javadoc does not match code.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new cdf7794 [IO-686] IOUtils.toByteArray(InputStream) Javadoc does not match code.
cdf7794 is described below
commit cdf779422d47637ead33e094ae8f971de1c395f6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Sep 10 12:26:48 2020 -0400
[IO-686] IOUtils.toByteArray(InputStream) Javadoc does not match code.
---
src/changes/changes.xml | 6 ++++++
src/main/java/org/apache/commons/io/IOUtils.java | 1 -
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index b563c1f..f6e80cd 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -46,6 +46,12 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<!-- The release date is the date RC is cut -->
+ <release version="2.9.0" date="2020-MM-DD" description="Java 8 required.">
+ <action issue="686" dev="ggregory" type="add" due-to="Alan Moffat, Gary Gregory">
+ IOUtils.toByteArray(InputStream) Javadoc does not match code
+ </action>
+ </release>
+ <!-- The release date is the date RC is cut -->
<release version="2.8.0" date="2020-09-05" description="Java 8 required.">
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add org.apache.commons.io.input.CircularInputStream.
diff --git a/src/main/java/org/apache/commons/io/IOUtils.java b/src/main/java/org/apache/commons/io/IOUtils.java
index d5593c6..9bfe142 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -2232,7 +2232,6 @@ public class IOUtils {
*
* @param input the <code>InputStream</code> to read from
* @return the requested byte array
- * @throws NullPointerException if the input is null
* @throws IOException if an I/O error occurs
*/
public static byte[] toByteArray(final InputStream input) throws IOException {