Package edu.umd.cs.findbugs.xml

Examples of edu.umd.cs.findbugs.xml.XMLAttributeList.addAttribute()


                    }

                }
                if (addMessages) {
                    int ageInDays = ageInDays(bugCollection, firstSeen);
                    attributeList.addAttribute("ageInDays", Integer.toString(ageInDays));
                    if (reviews > 0 && consensus != UserDesignation.UNCLASSIFIED) {
                        if (consensus.score() < 0) {
                            attributeList.addAttribute("notAProblem", "true");
                        }
                        if (consensus.score() > 0) {
View Full Code Here


                if (addMessages) {
                    int ageInDays = ageInDays(bugCollection, firstSeen);
                    attributeList.addAttribute("ageInDays", Integer.toString(ageInDays));
                    if (reviews > 0 && consensus != UserDesignation.UNCLASSIFIED) {
                        if (consensus.score() < 0) {
                            attributeList.addAttribute("notAProblem", "true");
                        }
                        if (consensus.score() > 0) {
                            attributeList.addAttribute("shouldFix", "true");
                        }
                    }
View Full Code Here

                    if (reviews > 0 && consensus != UserDesignation.UNCLASSIFIED) {
                        if (consensus.score() < 0) {
                            attributeList.addAttribute("notAProblem", "true");
                        }
                        if (consensus.score() > 0) {
                            attributeList.addAttribute("shouldFix", "true");
                        }
                    }

                }
            } else if (hasXmlProps()) {
View Full Code Here

                }
                if (props.reviewCount > 0) {
                    if (props.consensus != null) {
                        attributeList.addOptionalAttribute("consensus", props.consensus);
                    }
                    attributeList.addAttribute("reviews", Integer.toString(props.reviewCount));
                }
                if (!props.isInCloud()) {
                    attributeList.addAttribute("isInCloud", "false");
                }
                if (addMessages) {
View Full Code Here

                        attributeList.addOptionalAttribute("consensus", props.consensus);
                    }
                    attributeList.addAttribute("reviews", Integer.toString(props.reviewCount));
                }
                if (!props.isInCloud()) {
                    attributeList.addAttribute("isInCloud", "false");
                }
                if (addMessages) {
                    UserDesignation consesus = UserDesignation.valueOf(props.consensus);
                    if (consesus.shouldFix()) {
                        attributeList.addAttribute("shouldFix", "true");
View Full Code Here

                    attributeList.addAttribute("isInCloud", "false");
                }
                if (addMessages) {
                    UserDesignation consesus = UserDesignation.valueOf(props.consensus);
                    if (consesus.shouldFix()) {
                        attributeList.addAttribute("shouldFix", "true");
                    } else if (consesus.notAProblem()) {
                        attributeList.addAttribute("notAProblem", "true");
                    }

                    if (props.firstSeen != null) {
View Full Code Here

                if (addMessages) {
                    UserDesignation consesus = UserDesignation.valueOf(props.consensus);
                    if (consesus.shouldFix()) {
                        attributeList.addAttribute("shouldFix", "true");
                    } else if (consesus.notAProblem()) {
                        attributeList.addAttribute("notAProblem", "true");
                    }

                    if (props.firstSeen != null) {
                        int ageInDays = ageInDays(bugCollection, props.firstSeen.getTime());
                        attributeList.addAttribute("ageInDays", Integer.toString(ageInDays));
View Full Code Here

                        attributeList.addAttribute("notAProblem", "true");
                    }

                    if (props.firstSeen != null) {
                        int ageInDays = ageInDays(bugCollection, props.firstSeen.getTime());
                        attributeList.addAttribute("ageInDays", Integer.toString(ageInDays));
                    }
                }
            }
        }
View Full Code Here

    public void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws IOException {
        XMLAttributeList attributeList = new XMLAttributeList().addAttribute("classname", getClassName())
                .addAttribute("name", getMethodName()).addAttribute("signature", getMethodSignature())
                .addAttribute("isStatic", String.valueOf(isStatic()));
        if (isPrimary) {
            attributeList.addAttribute("primary", "true");
        }

        String role = getDescription();
        if (!role.equals(DEFAULT_ROLE)) {
            attributeList.addAttribute("role", role);
View Full Code Here

            attributeList.addAttribute("primary", "true");
        }

        String role = getDescription();
        if (!role.equals(DEFAULT_ROLE)) {
            attributeList.addAttribute("role", role);
        }

        if (sourceLines == null && !addMessages) {
            xmlOutput.openCloseTag(ELEMENT_NAME, attributeList);
        } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.