remove unnecessary (and buggy) BufferedInputStream wrapping

This commit is contained in:
Vincent Breitmoser
2014-10-25 22:20:43 +02:00
parent c2e7c2416f
commit b9c0504465
3 changed files with 20 additions and 8 deletions

View File

@@ -165,10 +165,6 @@ public class UncachedKeyRing {
// if there are no objects left from the last factory, create a new one
if (mObjectFactory == null) {
InputStream in = PGPUtil.getDecoderStream(stream);
if (!BufferedInputStream.class.isInstance(in)) {
in = new BufferedInputStream(in);
}
mObjectFactory = new PGPObjectFactory(in, new JcaKeyFingerprintCalculator());
}