Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.BugDesignation


                BugInstance origWarning = mapFromNewToOldBug.get(bug);

                mergeBugHistory(origWarning, newBug);
                // handle getAnnotationText()/setAnnotationText() and
                // designation key
                BugDesignation designation = newBug.getUserDesignation();
                if (designation != null) {
                    designation.merge(origWarning.getUserDesignation());
                }
                else {
                    newBug.setUserDesignation(origWarning.getUserDesignation()); // clone??
                }
View Full Code Here


        return 0;
    }

    @Override
    public UserDesignation getUserDesignation(BugInstance b) {
        BugDesignation bd = getPrimaryDesignation(b);
        if (bd == null) {
            return UserDesignation.UNCLASSIFIED;
        }
        return UserDesignation.valueOf(bd.getDesignationKey());
    }
View Full Code Here

        return UserDesignation.valueOf(bd.getDesignationKey());
    }

    @Override
    public String getUserEvaluation(BugInstance b) {
        BugDesignation bd = getPrimaryDesignation(b);
        if (bd == null) {
            return "";
        }
        String result = bd.getAnnotationText();
        if (result == null) {
            return "";
        }
        return result;
    }
View Full Code Here

        return result;
    }

    @Override
    public long getUserTimestamp(BugInstance b) {
        BugDesignation bd = getPrimaryDesignation(b);
        if (bd == null) {
            return Long.MAX_VALUE;
        }
        return bd.getTimestamp();

    }
View Full Code Here

    }

    @SuppressWarnings({"deprecation"})
    @Override
    public UserDesignation getUserDesignation(BugInstance b) {
        BugDesignation bd = b.getUserDesignation();
        if (bd == null) {
            return UserDesignation.UNCLASSIFIED;
        }
        return UserDesignation.valueOf(bd.getDesignationKey());
    }
View Full Code Here

    }

    @SuppressWarnings({"deprecation"})
    @Override
    public String getUserEvaluation(BugInstance b) {
        BugDesignation bd = b.getUserDesignation();
        if (bd == null) {
            return "";
        }
        return bd.getAnnotationText();
    }
View Full Code Here

    }

    @SuppressWarnings({"deprecation"})
    @Override
    public long getUserTimestamp(BugInstance b) {
        BugDesignation bd = b.getUserDesignation();
        if (bd == null) {
            return Long.MAX_VALUE;
        }
        return bd.getTimestamp();
    }
View Full Code Here

        return b.getUserDesignation();
    }

    @Override
    protected Iterable<BugDesignation> getLatestDesignationFromEachUser(BugInstance bd) {
        BugDesignation designation = getPrimaryDesignation(bd);
        if (designation == null) {
            return Collections.emptySet();
        }
        return Collections.singleton(designation);
    }
View Full Code Here

            List<BugDesignation> list = designations.get(b);
            if (list == null) {
                return Collections.emptyList();
            }
            for (BugDesignation bd : list) {
                BugDesignation old = map.get(bd.getUser());
                if (old == null || old.getTimestamp() < bd.getTimestamp()) {
                    map.put(bd.getUser(), bd);
                }
            }
            return map.values();
        }
View Full Code Here

        bug.addClass("edu.umd.Test" + abbrev);
        List<BugDesignation> designations = new ArrayList<BugDesignation>();
        for (int i = 0; i < designationUserPairs.length; i += 2) {
            String designation = designationUserPairs[i];
            String user = designationUserPairs[i + 1];
            designations.add(new BugDesignation(designation, timestampCounter++, "my comment", user));
        }
        cloud.designations.put(bug, designations);
        return bug;
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.BugDesignation

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.