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
If a type is resolved using the instanceof method, there is no need to explicitly cast the type.
This is thanks to the addition of JEP 394: Pattern Matching for instanceof in Java 16.
For example, a CriteriaFilterProcessor.java might change to the following:
AS-IS
if (valueinstanceofBox) {
geoBBox = GeoBox.fromBox((Box) value);
}
TO-BE
if (valueinstanceofBoxbox) {
geoBBox = GeoBox.fromBox(box);
}
The text was updated successfully, but these errors were encountered:
If a type is resolved using the
instanceof
method, there is no need to explicitly cast the type.This is thanks to the addition of JEP 394: Pattern Matching for instanceof in Java 16.
For example, a
CriteriaFilterProcessor.java
might change to the following:AS-IS
TO-BE
The text was updated successfully, but these errors were encountered: