Optimization (after profiling): getClass() not needed in a final class' equals()

This commit is contained in:
Andrey Breslav
2013-04-23 17:59:52 +04:00
parent bd4d6c810f
commit e158affacc
@@ -39,7 +39,7 @@ public final class SlicedMapKey<K, V> {
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!(o instanceof SlicedMapKey)) return false;
SlicedMapKey that = (SlicedMapKey) o;