Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java')
-rw-r--r--pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
index ed97d807..b9c9885f 100644
--- a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
+++ b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
@@ -521,11 +521,11 @@ public class PGPSecretKey
for (int i = 0; i != pub.ids.size(); i++)
{
- if (pub.ids.get(i) instanceof String)
+ if (pub.ids.get(i) instanceof UserIDPacket)
{
- String id = (String)pub.ids.get(i);
+ UserIDPacket id = (UserIDPacket)pub.ids.get(i);
- out.writePacket(new UserIDPacket(id));
+ out.writePacket(id);
}
else
{