Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #566001 +++ Use pattern matching for the instanceof operator when possible Given: if (object instanceof Integer) { Integer i = (Integer) object; return i.intValue(); } When: Clean up the code enabling "Use pattern matching for instanceof" Then: if (object instanceof Integer i) { return i.intValue(); }
Bug 566001 provides a clean up for this. It will be nice to have it as a quick assist (ctrl+1) also.
This would be an important feature to have in 4.19 M1 as instanceof pattern will become a standard feature for Java 16.
Ping!
(In reply to Noopur Gupta from comment #3) > Ping! you better assign someone else as the assignee left eclipse
(In reply to Jörg Kubitz from comment #4) > (In reply to Noopur Gupta from comment #3) > > Ping! > > you better assign someone else as the assignee left eclipse Thanks, updated the Bugzilla fields.