We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38295ac commit 4685e40Copy full SHA for 4685e40
tls/src/main/java/org/bouncycastle/jsse/provider/ProvX509KeyManagerSimple.java
@@ -362,10 +362,10 @@ private static final class Match
362
363
public int compareTo(Match that)
364
{
365
- int cmp = Boolean.compare(that.isValid(), this.isValid());
+ int cmp = (that.isValid() == this.isValid()) ? 0 : (that.isValid() ? 1 : -1);
366
if (cmp == 0)
367
368
- cmp = Integer.compare(this.keyTypeIndex, that.keyTypeIndex);
+ cmp = this.keyTypeIndex < that.keyTypeIndex ? -1 : (this.keyTypeIndex == that.keyTypeIndex ? 0 : 1);
369
370
371
cmp = this.quality.compareTo(that.quality);
0 commit comments