@Override public @CheckForNull BugCollection getBugCollection() { return delegate.getBugCollection(); } }
public CheckExpectedWarnings(BugReporter bugReporter) { bugCollection = bugReporter.getBugCollection(); if (bugCollection != null) { reporter = bugReporter; expectWarning = DescriptorFactory.createClassDescriptor(ExpectWarning.class); noWarning = DescriptorFactory.createClassDescriptor(NoWarning.class); desireWarning = DescriptorFactory.createClassDescriptor(DesireWarning.class); desireNoWarning = DescriptorFactory.createClassDescriptor(DesireNoWarning.class); } }
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }
@Override public @CheckForNull BugCollection getBugCollection() { return delegate.getBugCollection(); } }
public CheckExpectedWarnings(BugReporter bugReporter) { bugCollection = bugReporter.getBugCollection(); if (bugCollection != null) { reporter = bugReporter; expectWarning = DescriptorFactory.createClassDescriptor(ExpectWarning.class); noWarning = DescriptorFactory.createClassDescriptor(NoWarning.class); desireWarning = DescriptorFactory.createClassDescriptor(DesireWarning.class); desireNoWarning = DescriptorFactory.createClassDescriptor(DesireNoWarning.class); } }
/** * Configure the BugCollection (if the BugReporter being used is * constructing one). * * @param findBugs * the IFindBugsEngine */ public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }