Skip to content

Commit a707731

Browse files
shai-almogclaude
andcommitted
Base64: one declaration per line (PMD OneDeclarationPerLine)
Split the gate's combined byte[] declaration into one per line to satisfy PMD (the SpotBugs fix in the prior commit cleared; this is the remaining static-analysis nit on the same code). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 741999e commit a707731

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CodenameOne/src/com/codename1/util/Base64.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,10 @@ public static int encodeNoNewlineSimd(byte[] in, int inOffset, int inLength, byt
622622
boolean useSimd = simd.isSupported() && simd.isByteShuffleAccelerated();
623623
int simdEnd = useSimd ? end3 - SIMD_BYTE_LANES * 3 + 1 : si;
624624
byte[] scratch = simdEnd > si ? simd.allocaByte(SIMD_ENCODE_SCRATCH_BYTES) : null;
625-
byte[] encodeMap = null, const03 = null, const0F = null, const3F = null;
625+
byte[] encodeMap = null;
626+
byte[] const03 = null;
627+
byte[] const0F = null;
628+
byte[] const3F = null;
626629
if (scratch != null) {
627630
encodeMap = getSimdEncodeMap(simd);
628631
const03 = getSimdConst03(simd);

0 commit comments

Comments
 (0)