aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/poifs/crypt/Decryptor.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2015-12-01 00:23:21 +0000
committerAndreas Beeker <kiwiwings@apache.org>2015-12-01 00:23:21 +0000
commit98ac10e52191f5fd4238aff395ebe57f1110f1dc (patch)
tree9c92b990deb3b303bb6ac6feb0398484abb3147f /src/java/org/apache/poi/poifs/crypt/Decryptor.java
parent96c3abad1a02b9e6e883ac3b1b5c8804812e4eb3 (diff)
downloadpoi-98ac10e52191f5fd4238aff395ebe57f1110f1dc.tar.gz
poi-98ac10e52191f5fd4238aff395ebe57f1110f1dc.zip
Sonar fixes, direct array parameter
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/poifs/crypt/Decryptor.java')
-rw-r--r--src/java/org/apache/poi/poifs/crypt/Decryptor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/poifs/crypt/Decryptor.java b/src/java/org/apache/poi/poifs/crypt/Decryptor.java
index eb94dca983..bec436a88e 100644
--- a/src/java/org/apache/poi/poifs/crypt/Decryptor.java
+++ b/src/java/org/apache/poi/poifs/crypt/Decryptor.java
@@ -114,15 +114,15 @@ public abstract class Decryptor {
}
protected void setVerifier(byte[] verifier) {
- this.verifier = verifier;
+ this.verifier = (verifier == null) ? null : verifier.clone();
}
protected void setIntegrityHmacKey(byte[] integrityHmacKey) {
- this.integrityHmacKey = integrityHmacKey;
+ this.integrityHmacKey = (integrityHmacKey == null) ? null : integrityHmacKey.clone();
}
protected void setIntegrityHmacValue(byte[] integrityHmacValue) {
- this.integrityHmacValue = integrityHmacValue;
+ this.integrityHmacValue = (integrityHmacValue == null) ? null : integrityHmacValue.clone();
}
protected int getBlockSizeInBytes() {