Fix partial javadocs

PiperOrigin-RevId: 896503460
This commit is contained in:
Evgenii Kliuchnikov
2026-04-08 08:00:10 -07:00
committed by Copybara-Service
parent 5583858f76
commit 88b27d494d
4 changed files with 10 additions and 6 deletions

View File

@@ -224,7 +224,7 @@ final class Decode {
/**
* Reads brotli stream header and parses "window bits".
*
* @param s initialized state, before any read is performed.
* @param s initialized state, before any read is performed
* @return -1 if header is invalid
*/
private static int decodeWindowBits(State s) {
@@ -272,7 +272,8 @@ final class Decode {
*
* In "eager" mode decoder returns as soon as there is enough data to fill output buffer.
*
* @param s initialized state, before any read is performed.
* @param s initialized state, before any read is performed
* @return {@link BROTLI_OK} on success; otherwise an error code
*/
static int enableEagerOutput(State s) {
if (s.runningState != INITIALIZED) {

View File

@@ -40,9 +40,10 @@ final class Huffman {
}
/**
* @param count histogram of bit lengths for the remaining symbols,
* @param len code length of the next processed symbol.
* @return table width of the next 2nd level table.
* @param count histogram of bit lengths for the remaining symbols
* @param len code length of the next processed symbol
* @param rootBits number of bits in the root table
* @return table width of the next 2nd level table
*/
private static int nextTableBitSize(int[] count, int len, int rootBits) {
int bits = len;

View File

@@ -31,7 +31,7 @@ public class BundleChecker implements Runnable {
private final boolean sanityCheck;
/**
* @param sanityCheck do not calculate checksum and ignore {@link IOException}.
* @param sanityCheck do not calculate checksum and ignore {@link IOException}
*/
public BundleChecker(InputStream input, AtomicInteger nextJob, boolean sanityCheck) {
this.input = input;

View File

@@ -69,6 +69,7 @@ public class Encoder implements AutoCloseable {
* Setup encoder quality.
*
* @param quality compression quality, or -1 for default
* @return this
*/
public Parameters setQuality(int quality) {
if (quality < -1 || quality > 11) {
@@ -82,6 +83,7 @@ public class Encoder implements AutoCloseable {
* Setup encoder window size.
*
* @param lgwin log2(LZ window size), or -1 for default
* @return this
*/
public Parameters setWindow(int lgwin) {
if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) {