Checkstyle cleanup from d59b4840c1
This commit is contained in:
parent
d59b4840c1
commit
544d771152
@ -248,13 +248,13 @@ public final class DefaultChannelId implements ChannelId {
|
||||
|
||||
@Override
|
||||
public int compareTo(final ChannelId o) {
|
||||
if (this == o) {
|
||||
// short circuit
|
||||
return 0;
|
||||
}
|
||||
if (o instanceof DefaultChannelId) {
|
||||
final byte[] otherData = ((DefaultChannelId)o).data;
|
||||
if (this == o) {
|
||||
// short circuit
|
||||
return 0;
|
||||
}
|
||||
// lexicographic comparison
|
||||
final byte[] otherData = ((DefaultChannelId) o).data;
|
||||
int len1 = data.length;
|
||||
int len2 = otherData.length;
|
||||
int len = Math.min(len1, len2);
|
||||
|
@ -31,7 +31,7 @@ public class CustomChannelId implements ChannelId {
|
||||
@Override
|
||||
public int compareTo(final ChannelId o) {
|
||||
if (o instanceof CustomChannelId) {
|
||||
return MathUtil.compare(id, ((CustomChannelId)o).id);
|
||||
return MathUtil.compare(id, ((CustomChannelId) o).id);
|
||||
}
|
||||
|
||||
return asLongText().compareTo(o.asLongText());
|
||||
|
Loading…
Reference in New Issue
Block a user