[errorprone] Suppress UnnecessaryParentheses

for the sake of readability.

See https://errorprone.info/bugpattern/UnnecessaryParentheses

Change-Id: I8444db78c408d4e8bd71bf7e575b9af637900629
This commit is contained in:
Matthias Sohn 2023-09-22 14:30:11 +02:00
parent 4cf246c9ab
commit ebdf71c117
2 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,7 @@ private Base64() {
* @param destOffset
* the index where output will be put
*/
@SuppressWarnings("UnnecessaryParentheses")
private static void encode3to4(byte[] source, int srcOffset,
int numSigBytes, byte[] destination, int destOffset) {
// We have to shift left 24 in order to flush out the 1's that appear
@ -201,6 +202,7 @@ public static String encodeBytes(byte[] source, int off, int len) {
* the index where output will be put
* @return the number of decoded bytes converted
*/
@SuppressWarnings("UnnecessaryParentheses")
private static int decode4to3(byte[] source, int srcOffset,
byte[] destination, int destOffset) {
// Example: Dk==

View File

@ -89,6 +89,7 @@ final class UbcCheck {
private static final int DV_II_55_0_bit = 1 << 30;
private static final int DV_II_56_0_bit = 1 << 31;
@SuppressWarnings("UnnecessaryParentheses")
static int check(int[] w) {
int mask = ~0;
mask &= (((((w[44] ^ w[45]) >>> 29) & 1) - 1) | ~(DV_I_48_0_bit