Checkstyle cleanup from d59b4840c1

This commit is contained in:
Scott Mitchell 2017-02-15 12:03:11 -08:00
parent d59b4840c1
commit 544d771152
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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());