Structural Search Inspection not working for Structural Search that does?
Hello, All -
If I issue this Structural Search:
$field$ = $something$; if ($field$ == null) { throw new ServletException($msg$); }
with all default constraints via Edit > Find > Search Structurally, it matches code you'd expect it to, e.g.,
metricId = inputForm.getMetricId();
if (metricId == null) { throw new ServletException("Missing metricId"); }
If you dump this into a Structural Search Inspection as a Search Template, it doesn't flag this same code. (All of my other SS Inspections work great - I love this feature!) Ideas?
Thanks in advance,
- Luke
Please sign in to leave a comment.
Hi Luke,
Sorry for the late reply, but this looks like a bug. Could you submit a bug report?
http://youtrack.jetbrains.com/newIssue?project=IDEA&clearDraft=true&summary=Structural+Search+Inspection+not+working+for+Structural+Search+that+does&c=
Thanks,
Bas
I created IDEA-123526 . This issue may be related to open issue IDEA-73544 . Thanks for your attention Bas.
Kind regards,
- Luke