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

Fix generics of CertificationSubpackets callback

This commit is contained in:
Paul Schaub 2022-03-02 11:15:07 +01:00
parent 35dd4f9a67
commit 1949cc5eea
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ package org.pgpainless.signature.subpackets;
public interface CertificationSubpackets extends BaseSignatureSubpackets { public interface CertificationSubpackets extends BaseSignatureSubpackets {
interface Callback extends SignatureSubpacketCallback<BaseSignatureSubpackets> { interface Callback extends SignatureSubpacketCallback<CertificationSubpackets> {
} }
} }

View file

@ -13,7 +13,6 @@ import org.pgpainless.PGPainless;
import org.pgpainless.algorithm.SignatureType; import org.pgpainless.algorithm.SignatureType;
import org.pgpainless.implementation.ImplementationFactory; import org.pgpainless.implementation.ImplementationFactory;
import org.pgpainless.key.protection.SecretKeyRingProtector; import org.pgpainless.key.protection.SecretKeyRingProtector;
import org.pgpainless.signature.subpackets.BaseSignatureSubpackets;
import org.pgpainless.signature.subpackets.CertificationSubpackets; import org.pgpainless.signature.subpackets.CertificationSubpackets;
import org.pgpainless.signature.subpackets.SignatureSubpacketsUtil; import org.pgpainless.signature.subpackets.SignatureSubpacketsUtil;
@ -53,7 +52,7 @@ public class ThirdPartyCertificationSignatureBuilderTest {
signatureBuilder.applyCallback(new CertificationSubpackets.Callback() { signatureBuilder.applyCallback(new CertificationSubpackets.Callback() {
@Override @Override
public void modifyHashedSubpackets(BaseSignatureSubpackets hashedSubpackets) { public void modifyHashedSubpackets(CertificationSubpackets hashedSubpackets) {
hashedSubpackets.setExportable(true, false); hashedSubpackets.setExportable(true, false);
} }
}); });