Iterator should be on reconstructed collection
@@ -2012,14 +2012,11 @@ public void test4()
throws Exception
{
JcaPGPSecretKeyRingCollection secretRings = new JcaPGPSecretKeyRingCollection(sec4);
-
- Iterator rIt = secretRings.getKeyRings();
- int count = 0;
-
byte[] encRing = secretRings.getEncoded();
-
secretRings = new JcaPGPSecretKeyRingCollection(encRing);
+ int count = 0;
+ Iterator rIt = secretRings.getKeyRings();
while (rIt.hasNext())
{
PGPSecretKeyRing pgpSec = (PGPSecretKeyRing)rIt.next();
