diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/Base64.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/Base64.java index 119c96e02..48d1c50c7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/Base64.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/Base64.java @@ -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== diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/UbcCheck.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/UbcCheck.java index cebdbee27..91ee3cc9b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/UbcCheck.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/UbcCheck.java @@ -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