8273250: Address javadoc issues in Deflater::setDictionationary
Reviewed-by: rriggs, naoto, iris, bpb
This commit is contained in:
parent
5ee5dd9b18
commit
aaa6f696b0
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 off the start offset of the data
|
||||||
* @param len the length of the data
|
* @param len the length of the data
|
||||||
* @see Inflater#inflate
|
* @see Inflater#inflate
|
||||||
* @see Inflater#getAdler
|
* @see Inflater#getAdler()
|
||||||
*/
|
*/
|
||||||
public void setDictionary(byte[] dictionary, int off, int len) {
|
public void setDictionary(byte[] dictionary, int off, int len) {
|
||||||
Preconditions.checkFromIndexSize(len, off, dictionary.length, Preconditions.AIOOBE_FORMATTER);
|
Preconditions.checkFromIndexSize(len, off, dictionary.length, Preconditions.AIOOBE_FORMATTER);
|
||||||
@ -311,7 +311,7 @@ public class Deflater {
|
|||||||
* decompression.
|
* decompression.
|
||||||
* @param dictionary the dictionary data bytes
|
* @param dictionary the dictionary data bytes
|
||||||
* @see Inflater#inflate
|
* @see Inflater#inflate
|
||||||
* @see Inflater#getAdler
|
* @see Inflater#getAdler()
|
||||||
*/
|
*/
|
||||||
public void setDictionary(byte[] dictionary) {
|
public void setDictionary(byte[] dictionary) {
|
||||||
setDictionary(dictionary, 0, dictionary.length);
|
setDictionary(dictionary, 0, dictionary.length);
|
||||||
@ -329,7 +329,7 @@ public class Deflater {
|
|||||||
*
|
*
|
||||||
* @param dictionary the dictionary data bytes
|
* @param dictionary the dictionary data bytes
|
||||||
* @see Inflater#inflate
|
* @see Inflater#inflate
|
||||||
* @see Inflater#getAdler
|
* @see Inflater#getAdler()
|
||||||
*/
|
*/
|
||||||
public void setDictionary(ByteBuffer dictionary) {
|
public void setDictionary(ByteBuffer dictionary) {
|
||||||
synchronized (zsRef) {
|
synchronized (zsRef) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user