diff --git a/src/java.base/share/classes/com/sun/crypto/provider/ISO10126Padding.java b/src/java.base/share/classes/com/sun/crypto/provider/ISO10126Padding.java index 902d302cac4b7..a86f313e2c9e1 100644 --- a/src/java.base/share/classes/com/sun/crypto/provider/ISO10126Padding.java +++ b/src/java.base/share/classes/com/sun/crypto/provider/ISO10126Padding.java @@ -74,7 +74,6 @@ public void padWithLen(byte[] in, int off, int len) SunJCE.getRandom().nextBytes(padding); System.arraycopy(padding, 0, in, off, len - 1); in[idx - 1] = paddingOctet; - return; } /** diff --git a/src/java.base/share/classes/com/sun/crypto/provider/PKCS5Padding.java b/src/java.base/share/classes/com/sun/crypto/provider/PKCS5Padding.java index 7b3850bd55661..af072c6f5d708 100644 --- a/src/java.base/share/classes/com/sun/crypto/provider/PKCS5Padding.java +++ b/src/java.base/share/classes/com/sun/crypto/provider/PKCS5Padding.java @@ -71,7 +71,6 @@ public void padWithLen(byte[] in, int off, int len) byte paddingOctet = (byte) (len & 0xff); Arrays.fill(in, off, idx, paddingOctet); - return; } /**