1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 22:32:07 +01:00

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

View file

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