You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes JTS is at Java 8. But it is used on newer versions by other projects. Using Integer::compare (since java 1.7) and Integer:parseInt (is even older) avoids creating new instances of Integer. Same for other types Double::compare, Double.parseDouble, ...
Using new Integer() was not good practice. Since java 1.5 should be replaced with static method Integer.valueOf()
Numeric constructors are deprecated since Java 9. They should be replaced with autoboxing or by appropriate parse method.
For example following line
jts/modules/core/src/main/java/org/locationtech/jts/geom/PrecisionModel.java
Line 449 in a8b86cb
should be replaced with:
return Integer.compare(sigDigits, otherSigDigits));
Same for other types Float/Double/Long...
The text was updated successfully, but these errors were encountered: