Skip to content

Commit 43ca999

Browse files
committed
cleanup/compatibility changes
1 parent fb621a7 commit 43ca999

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pg/src/test/java/org/bouncycastle/openpgp/test/IgnoreUnknownEncryptedSessionKeys.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ private void attemptDecryption(String msg)
244244
isTrue(encryptedDataList != null);
245245

246246
InputStream decryptIn = null;
247-
for (PGPEncryptedData encryptedData : encryptedDataList)
247+
for (int i = 0; i != encryptedDataList.size(); i++)
248248
{
249+
PGPEncryptedData encryptedData = encryptedDataList.get(i);
249250
if (encryptedData instanceof PGPPublicKeyEncryptedData)
250251
{
251252
PGPPublicKeyEncryptedData pkesk = (PGPPublicKeyEncryptedData)encryptedData;

pg/src/test/java/org/bouncycastle/openpgp/test/UnrecognizableSubkeyParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public void subkeyHasEcdhUnknownCurveOpaqueEncodingSmall()
505505
isTrue("BC must be able to deal with ECDH subkeys with unknown curves", cert != null);
506506
}
507507

508-
private int count(Iterator<?> iterator)
508+
private int count(Iterator iterator)
509509
{
510510
int i = 0;
511511
while (iterator.hasNext())

0 commit comments

Comments
 (0)