Where is this quickfix? Permanently deleted user Created July 30, 2007 15:16 String foo = ... if (foo instanceof String) { ... }should be converted to String foo = ... if (foo != null) { ... }I could swear it is there, but I cannot find it.Tom
I'm pretty sure it's part of "Constant conditions & exceptions", mostly for obscure implementation reasons.
--Dave Griffith
It's a QuickFix for the Constant Conditions inspection: "Simplify ... to true" - if IDEA succeeds to
finish its analysis, which can fail if the containing method is overly complex. See also
http://www.jetbrains.net/jira/browse/IDEADEV-14126
Sascha
Thanks, Sascha and Dave, I was searching by "instanceof" and could not find it.
Tom