Fix unsigned assignment

This commit is contained in:
Paul Schaub 2018-07-24 14:48:35 +02:00
parent fc3e0a58a8
commit 770b4f9f59
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 2 additions and 2 deletions

View File

@ -209,9 +209,9 @@ public class BCUtil {
}
public static PGPPublicKey getMasterKeyFrom(PGPKeyRing ring) {
Iterator<PGPPublicKey> it = ring.getPublicKeys();
Iterator it = ring.getPublicKeys();
while (it.hasNext()) {
PGPPublicKey k = it.next();
PGPPublicKey k = (PGPPublicKey) it.next();
if (k.isMasterKey()) {
// There can only be one master key, so we can immediately return
return k;