Skip to content

Commit d7b75d4

Browse files
committed
Fix method name
1 parent 18d7c15 commit d7b75d4

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BcOpenPGPImplementation
3434
extends OpenPGPImplementation
3535
{
3636
@Override
37-
public PGPObjectFactory objectFactory(InputStream inputStream)
37+
public PGPObjectFactory pgpObjectFactory(InputStream inputStream)
3838
{
3939
return new BcPGPObjectFactory(inputStream);
4040
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public JcaOpenPGPImplementation(Provider provider, SecureRandom secureRandom)
5252
}
5353

5454
@Override
55-
public PGPObjectFactory objectFactory(InputStream inputStream)
55+
public PGPObjectFactory pgpObjectFactory(InputStream inputStream)
5656
{
5757
return new JcaPGPObjectFactory(inputStream);
5858
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.bouncycastle.openpgp.PGPSessionKey;
99
import org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory;
1010
import org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator;
11-
import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptorBuilder;
1211
import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptorBuilderProvider;
1312
import org.bouncycastle.openpgp.operator.PGPContentSignerBuilder;
1413
import org.bouncycastle.openpgp.operator.PGPContentVerifierBuilderProvider;
@@ -22,7 +21,7 @@
2221

2322
public abstract class OpenPGPImplementation
2423
{
25-
public abstract PGPObjectFactory objectFactory(InputStream inputStream);
24+
public abstract PGPObjectFactory pgpObjectFactory(InputStream inputStream);
2625

2726
public abstract PGPContentVerifierBuilderProvider pgpContentVerifierBuilderProvider();
2827

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public InputStream process(InputStream messageIn)
9393
int depth = 0;
9494
do
9595
{
96-
PGPObjectFactory objectFactory = implementation.objectFactory(packetInputStream);
96+
PGPObjectFactory objectFactory = implementation.pgpObjectFactory(packetInputStream);
9797
Object o = objectFactory.nextObject();
9898

9999
// TODO: This is a brittle prototype implementation. Implement properly!

0 commit comments

Comments
 (0)