Package edu.umd.cs.findbugs.cloud

Examples of edu.umd.cs.findbugs.cloud.Cloud


            BugInstance bug = theBug2.getBugInstance();
            long timestamp = theBug2.getBugCollection().getAppVersionFromSequenceNumber(bug.getFirstVersion()).getTimestamp();

            String firstVersion = "First seen: " + convertTimestamp(timestamp);

            Cloud cloud = theBug2.getBugCollection().getCloud();

            setCloud(cloud);
            if (cloud.canStoreUserAnnotation(bug)) {

                String userDesignation = cloud.getUserEvaluation(bug);
                this.userAnnotation = (userDesignation == null) ? "" : userDesignation.trim();
                this.firstVersionText = firstVersion.trim();
                this.cloudText = cloud.getCloudReport(bug);
                this.userAnnotationTextField.setEnabled(true);
                this.designationComboBox.setEnabled(true);

                int comboIndex = bug.getUserDesignationKeyIndex();
                if (comboIndex == -1) {
View Full Code Here


     *            the bug
     * @return true, if this warning is not a bug and should be ignored
     */
    @edu.umd.cs.findbugs.annotations.SuppressWarnings("NP")
    private boolean setCloudInformation(final SortedBugCollection collection, final BugInstance warning, final Bug bug) {
        Cloud cloud = collection.getCloud();
        cloud.waitUntilIssueDataDownloaded();

        bug.setShouldBeInCloud(cloud.isOnlineCloud());
        Map<String, String> cloudDetails = collection.getXmlCloudDetails();
        bug.setDetailsUrlTemplate(cloudDetails.get(CLOUD_DETAILS_URL_PROPERTY));

        long firstSeen = cloud.getFirstSeen(warning);
        bug.setInCloud(cloud.isInCloud(warning));
        bug.setFirstSeen(firstSeen);
        int ageInDays = (int)((collection.getAnalysisTimestamp() - firstSeen) / DAY_IN_MSEC);
        bug.setAgeInDays(ageInDays);
        bug.setReviewCount(cloud.getNumberReviewers(warning));

        return cloud.overallClassificationIsNotAProblem(warning);
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.cloud.Cloud

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.