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.
I have the following method: public boolean isConflict (ElementHandle <ExecutableElement> method, int paramIndex, CompilationInfo info) { ExecutableElement theMethod = method.resolve (info); Map <ExecutableElement, Set<Integer>> map = resolveSkips(info); Set <Integer> indicesOfParamsNotToRename = map.get(theMethod); return indicesOfParamsNotToRename.contains(paramIndex); } When I type indicesOfParamsNotToRename.cont and invoke smart code completion, it suggests "map" as the parameter to pass to contains(), which is wrong. In a perfect world, what it should do is understand autoboxing and detect that the best available parameter to pass is the integer parameter "paramIndex" and suggest that.