diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-10-21 23:52:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-10-21 23:52:55 +0000 |
commit | 206914063172ea2e0c4ffab4c1a5393e6ddd5a94 (patch) | |
tree | f8763d582a77b3a13179d8dbf40ce468c651f37a | |
parent | e83ae8984efba6ac8fd637cb25aab6ab67ba027b (diff) | |
parent | 902dae780a03933e1b56a2e233b0fc906034853a (diff) |
Merge "Fix checkNotNull(a, b) usages"
-rw-r--r-- | service/java/com/android/server/wifi/util/EncryptedData.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/util/EncryptedData.java b/service/java/com/android/server/wifi/util/EncryptedData.java index 91342d335..0b29099f8 100644 --- a/service/java/com/android/server/wifi/util/EncryptedData.java +++ b/service/java/com/android/server/wifi/util/EncryptedData.java @@ -29,10 +29,11 @@ public class EncryptedData { private final byte[] mIv; public EncryptedData(byte[] encryptedData, byte[] iv) { - Preconditions.checkNotNull(encryptedData, iv); - Preconditions.checkState(encryptedData.length == ENCRYPTED_DATA_LENGTH, + Preconditions.checkNotNull(encryptedData); + Preconditions.checkNotNull(iv); + Preconditions.checkArgument(encryptedData.length == ENCRYPTED_DATA_LENGTH, "encryptedData.length=" + encryptedData.length); - Preconditions.checkState(iv.length == IV_LENGTH, "iv.length=" + iv.length); + Preconditions.checkArgument(iv.length == IV_LENGTH, "iv.length=" + iv.length); mEncryptedData = encryptedData; mIv = iv; } |