Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.9.0
-
None
Description
public static int checkedCast(long value) { int valueI = (int) value; if (valueI != value) { throw new IllegalArgumentException(String.format("Overflow casting %d to an int", value)); } return valueI; }
Now that the Parquet-MR project uses Java 1.8, this method can now be replaced with Java Math class and toIntExact method.
Attachments
Issue Links
- links to