8273250: Address javadoc issues in Deflater::setDictionationary

Reviewed-by: rriggs, naoto, iris, bpb
This commit is contained in:
Lance Andersen 2021-09-02 16:06:55 +00:00
parent 5ee5dd9b18
commit aaa6f696b0

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -293,7 +293,7 @@ public class Deflater {
* @param off the start offset of the data
* @param len the length of the data
* @see Inflater#inflate
* @see Inflater#getAdler
* @see Inflater#getAdler()
*/
public void setDictionary(byte[] dictionary, int off, int len) {
Preconditions.checkFromIndexSize(len, off, dictionary.length, Preconditions.AIOOBE_FORMATTER);
@ -311,7 +311,7 @@ public class Deflater {
* decompression.
* @param dictionary the dictionary data bytes
* @see Inflater#inflate
* @see Inflater#getAdler
* @see Inflater#getAdler()
*/
public void setDictionary(byte[] dictionary) {
setDictionary(dictionary, 0, dictionary.length);
@ -329,7 +329,7 @@ public class Deflater {
*
* @param dictionary the dictionary data bytes
* @see Inflater#inflate
* @see Inflater#getAdler
* @see Inflater#getAdler()
*/
public void setDictionary(ByteBuffer dictionary) {
synchronized (zsRef) {