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.

View | Details | Raw Unified | Return to bug 234603
Collapse All | Expand All

(-)a/findbugs/nbproject/project.xml (+9 lines)
Lines 15-20 Link Here
15
                    </run-dependency>
15
                    </run-dependency>
16
                </dependency>
16
                </dependency>
17
                <dependency>
17
                <dependency>
18
                    <code-name-base>org.netbeans.api.java</code-name-base>
19
                    <build-prerequisite/>
20
                    <compile-dependency/>
21
                    <run-dependency>
22
                        <release-version>1</release-version>
23
                        <specification-version>1.52</specification-version>
24
                    </run-dependency>
25
                </dependency>
26
                <dependency>
18
                    <code-name-base>org.netbeans.api.java.classpath</code-name-base>
27
                    <code-name-base>org.netbeans.api.java.classpath</code-name-base>
19
                    <build-prerequisite/>
28
                    <build-prerequisite/>
20
                    <compile-dependency/>
29
                    <compile-dependency/>
(-)a/findbugs/src/org/netbeans/modules/findbugs/AnalyzerImpl.java (+1 lines)
Lines 358-363 Link Here
358
358
359
        @Override
359
        @Override
360
        public void warningOpened(ErrorDescription warning) {
360
        public void warningOpened(ErrorDescription warning) {
361
            // TODO but if it is in a test root, maybe do not skip it (though would ideally ignore test source root if scope includes whole projects)
361
            if (NbPreferences.forModule(RunInEditor.class).getBoolean(RunInEditor.RUN_IN_EDITOR, RunInEditor.RUN_IN_EDITOR_DEFAULT)) return;
362
            if (NbPreferences.forModule(RunInEditor.class).getBoolean(RunInEditor.RUN_IN_EDITOR, RunInEditor.RUN_IN_EDITOR_DEFAULT)) return;
362
            
363
            
363
            FileObject file = warning.getFile();
364
            FileObject file = warning.getFile();
(-)a/findbugs/src/org/netbeans/modules/findbugs/RunInEditor.java (+6 lines)
Lines 56-61 Link Here
56
import javax.lang.model.element.TypeElement;
56
import javax.lang.model.element.TypeElement;
57
import javax.swing.text.Document;
57
import javax.swing.text.Document;
58
import org.netbeans.api.java.classpath.ClassPath;
58
import org.netbeans.api.java.classpath.ClassPath;
59
import org.netbeans.api.java.queries.UnitTestForSourceQuery;
59
import org.netbeans.api.java.source.CancellableTask;
60
import org.netbeans.api.java.source.CancellableTask;
60
import org.netbeans.api.java.source.ClasspathInfo.PathKind;
61
import org.netbeans.api.java.source.ClasspathInfo.PathKind;
61
import org.netbeans.api.java.source.CompilationInfo;
62
import org.netbeans.api.java.source.CompilationInfo;
Lines 122-127 Link Here
122
            return;
123
            return;
123
        }
124
        }
124
125
126
        if (UnitTestForSourceQuery.findSources(sourceRoot).length > 0) {
127
            // TODO introduce an option for this in FindBugsPanel akin to RUN_IN_EDITOR
128
            return;
129
        }
130
125
        final Set<String> classNames = new HashSet<String>();
131
        final Set<String> classNames = new HashSet<String>();
126
132
127
        new TreePathScanner<Void, Void>() {
133
        new TreePathScanner<Void, Void>() {

Return to bug 234603