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 902d302cac4..a86f313e2c9 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 @@ final class ISO10126Padding implements Padding { 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 7b3850bd556..af072c6f5d7 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 @@ final class PKCS5Padding implements Padding { byte paddingOctet = (byte) (len & 0xff); Arrays.fill(in, off, idx, paddingOctet); - return; } /**