Skip to content

Commit 6e101ab

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1935118 13f79535-47bb-0310-9956-ffa450edef68
1 parent 26f4fbb commit 6e101ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/StandardSecurityHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ private static byte[] computeHash2B(byte[] input, byte[] password, byte[] userKe
11831183
byte[] eFirst = new byte[16];
11841184
System.arraycopy(e, 0, eFirst, 0, 16);
11851185
BigInteger bi = new BigInteger(1, eFirst);
1186-
BigInteger remainder = bi.mod(new BigInteger("3"));
1186+
BigInteger remainder = bi.mod(BigInteger.valueOf(3));
11871187
String nextHash = HASHES_2B[remainder.intValue()];
11881188

11891189
md = MessageDigest.getInstance(nextHash);

0 commit comments

Comments
 (0)