diff --git a/caliper/src/test/java/com/google/caliper/runner/target/LocalDeviceTest.java b/caliper/src/test/java/com/google/caliper/runner/target/LocalDeviceTest.java index c2877559..4bc56816 100644 --- a/caliper/src/test/java/com/google/caliper/runner/target/LocalDeviceTest.java +++ b/caliper/src/test/java/com/google/caliper/runner/target/LocalDeviceTest.java @@ -146,7 +146,7 @@ static final class TestBenchmark { long thing(long reps) { long dummy = 0; for (long i = 0; i < reps; i++) { - dummy += new Long(dummy).hashCode(); + dummy += Long.hashCode(dummy); } return dummy; }