diff options
author | David Hook <dgh@cryptoworkshop.com> | 2013-12-02 10:30:46 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2013-12-02 10:30:46 +0400 |
commit | aae25eb25a8a33a97491c9ee16d7692a8f57d320 (patch) | |
tree | 8fb0ba1d974aa60594a6e0aaeffb1727e84c6cb5 /pkix/src | |
parent | 73379da9daa7fc8fd2a61fd7ee83c833ec999b32 (diff) |
removed use of clone method
Diffstat (limited to 'pkix/src')
-rw-r--r-- | pkix/src/main/java/org/bouncycastle/cms/SignerInformation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkix/src/main/java/org/bouncycastle/cms/SignerInformation.java b/pkix/src/main/java/org/bouncycastle/cms/SignerInformation.java index e2d037e1..7e178d6c 100644 --- a/pkix/src/main/java/org/bouncycastle/cms/SignerInformation.java +++ b/pkix/src/main/java/org/bouncycastle/cms/SignerInformation.java @@ -162,7 +162,7 @@ public class SignerInformation throw new IllegalStateException("method can only be called after verify."); } - return (byte[])resultDigest.clone(); + return Arrays.clone(resultDigest); } /** @@ -222,7 +222,7 @@ public class SignerInformation */ public byte[] getSignature() { - return (byte[])signature.clone(); + return Arrays.clone(signature); } /** |