AssertionError instead of RuntimeException

This commit is contained in:
Dominik Schürmann 2015-05-21 13:32:22 +02:00 committed by Vincent Breitmoser
parent 79e356e04f
commit 08afe42ea6

View File

@ -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);