Skip to content

Commit b22276d

Browse files
committed
Comment protected members
1 parent dc2d1d5 commit b22276d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/java/org/apache/commons/codec/binary/BaseNCodec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ private static byte[] resizeBuffer(final Context context, final int minCapacity)
295295
@Deprecated
296296
protected final byte PAD = PAD_DEFAULT; // instance variable just in case it needs to vary later
297297

298-
protected final byte pad; // instance variable just in case it needs to vary later
298+
/** Pad byte. Instance variable just in case it needs to vary later. */
299+
protected final byte pad;
299300

300301
/** Number of bytes in each full block of unencoded data, e.g. 4 for Base64 and 5 for Base32 */
301302
private final int unencodedBlockSize;

src/main/java/org/apache/commons/codec/binary/BaseNCodecInputStream.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public class BaseNCodecInputStream extends FilterInputStream {
4343

4444
private final Context context = new Context();
4545

46+
/**
47+
* Create an instance.
48+
*
49+
* @param input the input stream
50+
* @param baseNCodec the codec
51+
* @param doEncode set to true to perform encoding, else decoding
52+
*/
4653
protected BaseNCodecInputStream(final InputStream input, final BaseNCodec baseNCodec, final boolean doEncode) {
4754
super(input);
4855
this.doEncode = doEncode;

0 commit comments

Comments
 (0)