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 { ...@@ -69,7 +69,7 @@ public final class Endpoint {
69 return false; 69 return false;
70 } 70 }
71 Endpoint that = (Endpoint) obj; 71 Endpoint that = (Endpoint) obj;
72 - return Objects.equals(this.port, that.port) && 72 + return this.port == that.port &&
73 Objects.equals(this.ip, that.ip); 73 Objects.equals(this.ip, that.ip);
74 } 74 }
75 } 75 }
......
...@@ -141,9 +141,9 @@ public final class Match<T> { ...@@ -141,9 +141,9 @@ public final class Match<T> {
141 return false; 141 return false;
142 } 142 }
143 Match<T> that = (Match<T>) other; 143 Match<T> that = (Match<T>) other;
144 - return Objects.equals(this.matchAny, that.matchAny) && 144 + return this.matchAny == that.matchAny &&
145 Objects.equals(this.value, that.value) && 145 Objects.equals(this.value, that.value) &&
146 - Objects.equals(this.negation, that.negation); 146 + this.negation == that.negation;
147 } 147 }
148 148
149 @Override 149 @Override
......