Skip to content

Commit fd7fbf8

Browse files
committed
Fix checkstyle and compilation issues
1 parent fbcc299 commit fd7fbf8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pg/src/main/java/org/bouncycastle/openpgp/api/KeyPairGeneratorCallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public interface KeyPairGeneratorCallback
1919
PGPKeyPair generateFrom(PGPKeyPairGenerator generator)
2020
throws PGPException;
2121

22-
static class Util {
22+
static class Util
23+
{
2324
public static KeyPairGeneratorCallback primaryKey()
2425
{
2526
return new KeyPairGeneratorCallback()

pg/src/test/java/org/bouncycastle/openpgp/api/test/OpenPGPV6KeyGeneratorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ private void testGenerateKeyWithoutSignatures(OpenPGPApi api)
581581
{
582582
OpenPGPKey key = api.generateKey()
583583
.withPrimaryKey(
584-
KeyPairGeneratorCallback.primaryKey(),
584+
KeyPairGeneratorCallback.Util.primaryKey(),
585585
// No direct-key sig
586586
new SignatureParameters.Callback()
587587
{
@@ -591,7 +591,7 @@ public SignatureParameters apply(SignatureParameters parameters) {
591591
}
592592
})
593593
.addSigningSubkey(
594-
KeyPairGeneratorCallback.signingKey(),
594+
KeyPairGeneratorCallback.Util.signingKey(),
595595
// No subkey binding sig
596596
new SignatureParameters.Callback()
597597
{
@@ -611,7 +611,7 @@ public SignatureParameters apply(SignatureParameters parameters)
611611
}
612612
})
613613
.addEncryptionSubkey(
614-
KeyPairGeneratorCallback.encryptionKey(),
614+
KeyPairGeneratorCallback.Util.encryptionKey(),
615615
// No subkey binding sig
616616
new SignatureParameters.Callback()
617617
{

0 commit comments

Comments
 (0)