Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
checkstyle
  • Loading branch information
kkocel committed Apr 14, 2024
commit 4e2f46acec5889c07fecb5358e910bbc4963f78f
8 changes: 4 additions & 4 deletions src/main/java/org/apache/commons/codec/binary/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ public Base64(byte[] encodeTable) {
* @since 1.15
*/
public Base64(final int lineLength, final byte[] lineSeparator, boolean urlSafe,
final CodecPolicy decodingPolicy){
this(lineLength, lineSeparator,urlSafe ? URL_SAFE_ENCODE_TABLE : STANDARD_ENCODE_TABLE, decodingPolicy);
final CodecPolicy decodingPolicy) {
this(lineLength, lineSeparator, urlSafe ? URL_SAFE_ENCODE_TABLE : STANDARD_ENCODE_TABLE, decodingPolicy);
}

/**
Expand Down Expand Up @@ -865,10 +865,10 @@ protected boolean isInAlphabet(final byte octet) {
*/
private byte[] calculateDecodeTable(byte[] encodeTable) {
byte[] decodeTable = new byte[256];
Comment thread
kkocel marked this conversation as resolved.
Outdated
for (int i=0; i < 256; i++) {
for (int i = 0; i < 256; i++) {
decodeTable[i] = -1;
}
for (int i=0; i < encodeTable.length; i++) {
for (int i = 0; i < encodeTable.length; i++) {
decodeTable[encodeTable[i]] = (byte) i;
}
return decodeTable;
Expand Down