8297129: Inflater documentation refers to 'deflate' methods

Reviewed-by: alanb, lancea
This commit is contained in:
Jaikiran Pai 2022-11-18 12:04:10 +00:00
parent dd18d76b4c
commit 2f2d40465b

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1996, 2022, 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
@ -46,7 +46,7 @@ import sun.nio.ch.DirectBuffer;
* This class inflates sequences of ZLIB compressed bytes. The input byte * This class inflates sequences of ZLIB compressed bytes. The input byte
* sequence is provided in either byte array or byte buffer, via one of the * sequence is provided in either byte array or byte buffer, via one of the
* {@code setInput()} methods. The output byte sequence is written to the * {@code setInput()} methods. The output byte sequence is written to the
* output byte array or byte buffer passed to the {@code deflate()} methods. * output byte array or byte buffer passed to the {@code inflate()} methods.
* <p> * <p>
* The following code fragment demonstrates a trivial compression * The following code fragment demonstrates a trivial compression
* and decompression of a string using {@code Deflater} and * and decompression of a string using {@code Deflater} and