CPD Results

The following document contains the results of PMD's CPD 4.1.

Duplications

File Line
org/apache/myfaces/buildtools/maven2/plugin/tagdoc/TagdocReport.java 766
org/apache/myfaces/buildtools/maven2/plugin/tagdoc/TagdocReport.java 797
  private void _writeValidatorAttributes(Writer out, ValidatorBean bean) throws IOException
  {
    // Sort the names
    TreeSet attributes = new TreeSet();
    Iterator attrs = bean.properties();
    while (attrs.hasNext())
    {
      PropertyBean property = (PropertyBean) attrs.next();
      if (!property.isTagAttributeExcluded())
      {
        attributes.add(property.getPropertyName());
      }
    }

    // Now get a list of PropertyBeans
    List list = new ArrayList();
    Iterator iter = attributes.iterator();
    while (iter.hasNext())
    {
      String attrName = (String) iter.next();
      list.add(bean.findProperty(attrName));
    }
    
    _writeComponentAttributes(out,
                              list.iterator(),
                              bean.getValidatorClass(),