AssertionError instead of RuntimeException

This commit is contained in:
Dominik Schürmann 2015-05-21 13:32:22 +02:00
parent 0456e04c1a
commit 1651f9fb61

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