Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
7.12.x
-
None
Description
Several instances of deprecated constructor usage such as:
return new Long(0);
return new Double(1.1);
return new Boolean(false);
Should be avoided per:
- @deprecated
- It is rarely appropriate to use this constructor. The static factory
- {@link #valueOf(boolean)}
is generally a better choice, as it is
- likely to yield significantly better space and time performance.
- Also consider using the final fields
{@link #TRUE}
and
{@link #FALSE} - if possible.