A boxed value is constructed and then immediately converted into a different primitive type.
Consider performing a direct cast instead.
Wrapping a primitive and then unwrapping it immediately after is a redundant operation that unnecessarily creates a new object.
int value = new Double(d).intValue();
It is better to just cast the primitive to the desired type directly instead.
int value = (int) d;