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.
build dev 201103070000 This message: Suspicious call to java.util.Collection.remove: Expected type Integer, actual type Object is presented for the call to super.remove in this code public class MyArrayList extends ArrayList<Integer> { @Override public boolean remove(Object o){ return super.remove(o); } } This is probably related to bug#181930 and bug#183367.
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.