RFR 8180410: ByteArrayOutputStream should not throw IOExceptions
Brian Burkhalter
brian.burkhalter at oracle.com
Wed Mar 21 18:27:44 UTC 2018
The diff:
--- a/src/java.base/share/classes/java/io/ByteArrayOutputStream.java
+++ b/src/java.base/share/classes/java/io/ByteArrayOutputStream.java
@@ -158,15 +158,16 @@
count += len;
}
/**
* Writes the complete contents of the specified byte array
* to this {@code ByteArrayOutputStream}.
*
- * <p> This method is equivalent to {@link #write(byte[],int,int)
+ * @implSpec
+ * This method is equivalent to {@link #write(byte[],int,int)
* write(b ,0, b.length)}.
*
* @param b the data.
* @throws NullPointerException if {@code b} is {@code null}.
* @since 11
*/
public void writeBytes(byte b[]) {
Thanks,
Brina
On Mar 21, 2018, at 10:00 AM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
> I’ll change before pushing.
>
> Thanks,
>
> Brian
>
> On Mar 21, 2018, at 9:58 AM, Roger Riggs <Roger.Riggs at Oracle.com> wrote:
>
>> An @impSpec for that is fine with me.
More information about the core-libs-dev
mailing list