diff --git a/presto-array/src/main/java/io/prestosql/array/BigArrays.java b/presto-array/src/main/java/io/prestosql/array/BigArrays.java index 9bac1187a65d..f876cf919c6c 100644 --- a/presto-array/src/main/java/io/prestosql/array/BigArrays.java +++ b/presto-array/src/main/java/io/prestosql/array/BigArrays.java @@ -57,7 +57,6 @@ public static int segment(long index) * @param index an index into a big array. * @return the associated offset (in the associated {@linkplain #segment(long) segment}). */ - @SuppressWarnings("NumericCastThatLosesPrecision") public static int offset(long index) { return (int) (index & SEGMENT_MASK); diff --git a/presto-main/src/test/java/io/prestosql/operator/aggregation/groupby/AggregationTestInput.java b/presto-main/src/test/java/io/prestosql/operator/aggregation/groupby/AggregationTestInput.java index 3d76addedb91..8a66de67cb31 100644 --- a/presto-main/src/test/java/io/prestosql/operator/aggregation/groupby/AggregationTestInput.java +++ b/presto-main/src/test/java/io/prestosql/operator/aggregation/groupby/AggregationTestInput.java @@ -34,7 +34,6 @@ public class AggregationTestInput private final int offset; private final boolean isReversed; - @SuppressWarnings("NumericCastThatLosesPrecision") public AggregationTestInput(InternalAggregationFunction function, Page[] pages, int offset, boolean isReversed) { this.pages = pages;