mbien opened a new pull request, #8850:
URL: https://github.com/apache/netbeans/pull/8850
Some hints didn't (correctly) check if the feature was supported by the
source version / preview flag combination.
example:
NB 27 will suggest to convert this into a rule switch on JDK 17 (without
preview enabled) which it shouldn't:
```java
public static void foo(Object obj) {
if (obj instanceof Integer i) {
System.out.println(i);
} else if (obj instanceof Long l) {
System.out.println(l);
}
}
```
(feature went final in 21)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists