< prev index next >

jdk/src/java.base/share/classes/java/util/zip/Checksum.java

Print this page

        

*** 49,59 **** * @param b the array of bytes to update the checksum with * * @throws NullPointerException * if {@code b} is {@code null} * ! * @since 1.9 */ default public void update(byte[] b) { update(b, 0, b.length); } --- 49,59 ---- * @param b the array of bytes to update the checksum with * * @throws NullPointerException * if {@code b} is {@code null} * ! * @since 9 */ default public void update(byte[] b) { update(b, 0, b.length); }
*** 97,107 **** * @param buffer the ByteBuffer to update the checksum with * * @throws NullPointerException * if {@code buffer} is {@code null} * ! * @since 1.9 */ default public void update(ByteBuffer buffer) { int pos = buffer.position(); int limit = buffer.limit(); assert (pos <= limit); --- 97,107 ---- * @param buffer the ByteBuffer to update the checksum with * * @throws NullPointerException * if {@code buffer} is {@code null} * ! * @since 9 */ default public void update(ByteBuffer buffer) { int pos = buffer.position(); int limit = buffer.limit(); assert (pos <= limit);
< prev index next >