We are a Java 8 user, we should be using Long.hashCode() instead.
Change-Id: I3c18d40569a91341daa148d894c7bbab46cc175b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import com.google.common.annotations.Beta;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Strings;
-import com.google.common.primitives.Longs;
import java.math.BigDecimal;
import org.opendaylight.yangtools.concepts.Immutable;
@Override
public int hashCode() {
// We need to normalize the results in order to be consistent with equals()
- return Longs.hashCode(intPart()) * 31 + Long.hashCode(fracPart());
+ return Long.hashCode(intPart()) * 31 + Long.hashCode(fracPart());
}
@Override