Skip to content

Commit 7e9d2cc

Browse files
committed
compareTo(): Return 0 if other is the same
1 parent 13bc779 commit 7e9d2cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pg/src/main/java/org/bouncycastle/openpgp/api/OpenPGPCertificate.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,6 +3010,11 @@ public String toString()
30103010
@Override
30113011
public int compareTo(OpenPGPSignatureChain other)
30123012
{
3013+
if (this == other)
3014+
{
3015+
return 0;
3016+
}
3017+
30133018
if (isHardRevocation())
30143019
{
30153020
return -1;

0 commit comments

Comments
 (0)