mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-08 19:27:57 +01:00
Add type parameters where possible
This commit is contained in:
parent
987791b9bd
commit
7690b542ab
3 changed files with 6 additions and 6 deletions
|
@ -43,8 +43,8 @@ public class PartialUserId {
|
|||
|
||||
@Override
|
||||
public boolean accept(String identifier, @Nonnull PGPSecretKey key) {
|
||||
for (Iterator userIds = key.getUserIDs(); userIds.hasNext(); ) {
|
||||
String userId = (String) userIds.next();
|
||||
for (Iterator<String> userIds = key.getUserIDs(); userIds.hasNext(); ) {
|
||||
String userId = userIds.next();
|
||||
if (userId.contains(identifier)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -216,9 +216,9 @@ public class BCUtil {
|
|||
}
|
||||
|
||||
public static PGPPublicKey getMasterKeyFrom(@Nonnull PGPKeyRing ring) {
|
||||
Iterator it = ring.getPublicKeys();
|
||||
Iterator<PGPPublicKey> it = ring.getPublicKeys();
|
||||
while (it.hasNext()) {
|
||||
PGPPublicKey k = (PGPPublicKey) it.next();
|
||||
PGPPublicKey k = it.next();
|
||||
if (k.isMasterKey()) {
|
||||
// There can only be one master key, so we can immediately return
|
||||
return k;
|
||||
|
@ -235,7 +235,7 @@ public class BCUtil {
|
|||
|
||||
boolean signingKey = false;
|
||||
|
||||
Iterator sit = k.getSignatures();
|
||||
Iterator<?> sit = k.getSignatures();
|
||||
while (sit.hasNext()) {
|
||||
Object n = sit.next();
|
||||
if (!(n instanceof PGPSignature)) {
|
||||
|
|
|
@ -125,7 +125,7 @@ public class MultiMap<K, V> {
|
|||
return true;
|
||||
}
|
||||
|
||||
return map.equals(((MultiMap) o).map);
|
||||
return map.equals(((MultiMap<?, ?>) o).map);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue