Skip to content

Commit 9987adb

Browse files
committed
Use BCPGInputStream.wrap() in PGPObjectFactory constructor
1 parent bbda8d2 commit 9987adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg/src/main/java/org/bouncycastle/openpgp/PGPObjectFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public PGPObjectFactory(
5454
InputStream in,
5555
KeyFingerPrintCalculator fingerPrintCalculator)
5656
{
57-
this.in = new BCPGInputStream(in);
57+
this.in = BCPGInputStream.wrap(in);
5858
this.fingerPrintCalculator = fingerPrintCalculator;
5959
}
6060

0 commit comments

Comments
 (0)