Small fix for LocalAddress.compareTo when both this and o are ephermal

This commit is contained in:
Cruz Bishop 2011-11-06 08:08:18 +10:00
parent cc758aa3b6
commit 8df2524bb0

View File

@ -115,7 +115,7 @@ public final class LocalAddress extends SocketAddress implements Comparable<Loca
} }
int a = System.identityHashCode(this); int a = System.identityHashCode(this);
int b = System.identityHashCode(this); int b = System.identityHashCode(o);
if (a < b) { if (a < b) {
return -1; return -1;
} else if (a > b) { } else if (a > b) {