changeset 7893:3211caab58ba

Merge
author vinnie
date Thu, 15 Aug 2013 19:56:53 +0100
parents b4645069238a 6c307b4d0dd8
children 5bb196aa183c
files
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/zip/Adler32.java	Thu Aug 15 19:49:08 2013 +0100
+++ b/src/share/classes/java/util/zip/Adler32.java	Thu Aug 15 19:56:53 2013 +0100
@@ -62,6 +62,11 @@
 
     /**
      * Updates the checksum with the specified array of bytes.
+     *
+     * @throws  ArrayIndexOutOfBoundsException
+     *          if {@code off} is negative, or {@code len} is negative,
+     *          or {@code off+len} is greater than the length of the
+     *          array {@code b}
      */
     public void update(byte[] b, int off, int len) {
         if (b == null) {
--- a/src/share/classes/java/util/zip/CRC32.java	Thu Aug 15 19:49:08 2013 +0100
+++ b/src/share/classes/java/util/zip/CRC32.java	Thu Aug 15 19:56:53 2013 +0100
@@ -60,6 +60,11 @@
 
     /**
      * Updates the CRC-32 checksum with the specified array of bytes.
+     *
+     * @throws  ArrayIndexOutOfBoundsException
+     *          if {@code off} is negative, or {@code len} is negative,
+     *          or {@code off+len} is greater than the length of the
+     *          array {@code b}
      */
     public void update(byte[] b, int off, int len) {
         if (b == null) {