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 {
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.implementation.ImplementationFactory;
import org.pgpainless.key.protection.SecretKeyRingProtector;
import org.pgpainless.signature.subpackets.BaseSignatureSubpackets;
import org.pgpainless.signature.subpackets.CertificationSubpackets;
import org.pgpainless.signature.subpackets.SignatureSubpacketsUtil;
@ -53,7 +52,7 @@ public class ThirdPartyCertificationSignatureBuilderTest {
signatureBuilder.applyCallback(new CertificationSubpackets.Callback() {
@Override
public void modifyHashedSubpackets(BaseSignatureSubpackets hashedSubpackets) {
public void modifyHashedSubpackets(CertificationSubpackets hashedSubpackets) {
hashedSubpackets.setExportable(true, false);
}
});