mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-15 21:29:38 +02:00
Move dummy merge callback to field
This commit is contained in:
parent
983f39c56f
commit
c4898ed26a
1 changed files with 9 additions and 6 deletions
|
@ -20,15 +20,18 @@ public class Import implements Runnable {
|
||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(Import.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(Import.class);
|
||||||
|
|
||||||
|
// TODO: Replace with proper merge callback
|
||||||
|
private final MergeCallback dummyMerge = new MergeCallback() {
|
||||||
|
@Override
|
||||||
|
public Certificate merge(Certificate data, Certificate existing) throws IOException {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
Certificate certificate = PGPCertDCli.getCertificateDirectory().insertCertificate(System.in, new MergeCallback() {
|
Certificate certificate = PGPCertDCli.getCertificateDirectory().insertCertificate(System.in, dummyMerge);
|
||||||
@Override
|
|
||||||
public Certificate merge(Certificate data, Certificate existing) {
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// CHECKSTYLE:OFF
|
// CHECKSTYLE:OFF
|
||||||
System.out.println(certificate.getFingerprint());
|
System.out.println(certificate.getFingerprint());
|
||||||
// CHECKSTYLE:ON
|
// CHECKSTYLE:ON
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue