Madan Jampani
Committed by Gerrit Code Review

Avoid autoboxing in high frequency code paths

Change-Id: I3b34bed6e99714daab7b4a18b36ef6c5cafb019c
......@@ -69,7 +69,7 @@ public final class Endpoint {
return false;
}
Endpoint that = (Endpoint) obj;
return Objects.equals(this.port, that.port) &&
return this.port == that.port &&
Objects.equals(this.ip, that.ip);
}
}
......
......@@ -141,9 +141,9 @@ public final class Match<T> {
return false;
}
Match<T> that = (Match<T>) other;
return Objects.equals(this.matchAny, that.matchAny) &&
return this.matchAny == that.matchAny &&
Objects.equals(this.value, that.value) &&
Objects.equals(this.negation, that.negation);
this.negation == that.negation;
}
@Override
......