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.
Inspect action (Source -> Inspect) always searches for the whole set of rules, even when single rule is selected Steps to reproduce: 1) have a class public class Paths { public void neco(int x){ x = x + 2; System.out.println(x); } } 2) open Inspect dialog 3) select Current file as a scope and 'Assignment replaceable with operator assignment' as single inspection -> 4 occurrences are found (No logger, Assignment to method parameter, replaceable assignment, use of System.out) , but expected is only one Product Version: NetBeans IDE Dev (Build 20120322-8b13bf21c968) Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
The usecase described above is basically a duplicate of bug #210084. But the configurations are not working properly (esp. for java.hints) - we can either use this bug to cover them, or we can file a new bug. Up to you.
Ok, there is no need to fill another bug, let's use this. Thanks for evaluation
Integrated into 'main-golden', will be available in build *201204050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e676d8025d27 User: Jan Lahoda <jlahoda@netbeans.org> Log: #210087, #210184: making Source/Inspect... configurations work for java.hints, and a few related fixes.
The fix above should ensure that the customization dialog for the Configurations contains panel for java.hints, is filled with the appropriate content, and the selected hints/warnings are used when doing the analysis. One more fix for the dialog opened by the Browse (for single inspection) button: http://hg.netbeans.org/jet-main/rev/38c4567ee539 There may be other (hopefully smaller) bugs in the Configurations&Single Inspection dialogs, but I propose to handle them separately.
Integrated into 'main-golden', will be available in build *201204080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/38c4567ee539 User: Jan Lahoda <jlahoda@netbeans.org> Log: #210087: making Source/Inspect...'s Browse should preselect the correct Analyzer and warning, the java.hints' customizer should not show checkboxes in this case.