mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-09 11:48:00 +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
|
@Override
|
||||||
public boolean accept(String identifier, @Nonnull PGPSecretKey key) {
|
public boolean accept(String identifier, @Nonnull PGPSecretKey key) {
|
||||||
for (Iterator userIds = key.getUserIDs(); userIds.hasNext(); ) {
|
for (Iterator<String> userIds = key.getUserIDs(); userIds.hasNext(); ) {
|
||||||
String userId = (String) userIds.next();
|
String userId = userIds.next();
|
||||||
if (userId.contains(identifier)) {
|
if (userId.contains(identifier)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,9 +216,9 @@ public class BCUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PGPPublicKey getMasterKeyFrom(@Nonnull PGPKeyRing ring) {
|
public static PGPPublicKey getMasterKeyFrom(@Nonnull PGPKeyRing ring) {
|
||||||
Iterator it = ring.getPublicKeys();
|
Iterator<PGPPublicKey> it = ring.getPublicKeys();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
PGPPublicKey k = (PGPPublicKey) it.next();
|
PGPPublicKey k = 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;
|
||||||
|
@ -235,7 +235,7 @@ public class BCUtil {
|
||||||
|
|
||||||
boolean signingKey = false;
|
boolean signingKey = false;
|
||||||
|
|
||||||
Iterator sit = k.getSignatures();
|
Iterator<?> sit = k.getSignatures();
|
||||||
while (sit.hasNext()) {
|
while (sit.hasNext()) {
|
||||||
Object n = sit.next();
|
Object n = sit.next();
|
||||||
if (!(n instanceof PGPSignature)) {
|
if (!(n instanceof PGPSignature)) {
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class MultiMap<K, V> {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return map.equals(((MultiMap) o).map);
|
return map.equals(((MultiMap<?, ?>) o).map);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue