diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-05-21 13:32:22 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-05-21 13:32:22 +0200 |
commit | 1651f9fb610122f25838e2e763abfb61fe2404eb (patch) | |
tree | b9c516646502019bc0b60f93e3cd22fa94982900 /OpenKeychain/src | |
parent | 0456e04c1a74285dcc5ca801d0d9afa61fff5469 (diff) | |
download | open-keychain-1651f9fb610122f25838e2e763abfb61fe2404eb.tar.gz open-keychain-1651f9fb610122f25838e2e763abfb61fe2404eb.tar.bz2 open-keychain-1651f9fb610122f25838e2e763abfb61fe2404eb.zip |
AssertionError instead of RuntimeException
Diffstat (limited to 'OpenKeychain/src')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/KeyFormattingUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/KeyFormattingUtils.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/KeyFormattingUtils.java index 47cbc88ca..10c1aca0c 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/KeyFormattingUtils.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/util/KeyFormattingUtils.java @@ -219,7 +219,7 @@ public class KeyFormattingUtils { // NOTE: Even though v3 keys are not imported we need to support both fingerprints for // display/comparison before import if (fingerprint.length != 16 && fingerprint.length != 20) { - throw new RuntimeException("No valid v3 or v4 fingerprint!"); + throw new AssertionError("No valid v3 or v4 fingerprint!"); } return Hex.toHexString(fingerprint).toLowerCase(Locale.ENGLISH); |