This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | suspicious call hint on List.remove(int) | ||
---|---|---|---|
Product: | java | Reporter: | devon_c_miller <devon_c_miller> |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
devon_c_miller
2011-03-11 19:23:43 UTC
Integrated into 'main-golden', will be available in build *201103180400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/7ab3f2d6f579 User: Jan Lahoda <jlahoda@netbeans.org> Log: #196606: do not warn about suspicious calls to Collection.remove inside method that overrides the method itself. Slightly different from the other bugs: the other bugs were bugs in the matching algorithm, where the expression were incorrectly identified as an occurrence of a pattern like $list.remove($obj) (where $list instanceof java.util.List, $obj instanceof java.lang.Object). In this case, correct occurrence is found, but as there is nothing the user can do about it, the warning should probably be auto-suppressed, which is what I tried in the above patch. |