CPD Results

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

Duplications

FileLine
info/magnolia/module/googlesitemap/app/subapp/sitemapdetail/component/SiteMapTable.java47
info/magnolia/module/googlesitemap/app/subapp/sitemapdetail/virtualuris/SiteMapVirtualUrisViewImpl.java58
        super(new MagnoliaTable() {
            @Override
            protected String formatPropertyValue(Object rowId, Object colId, Property<?> property) {
                if ("styleAlert".equals(colId)) {
                    StringBuilder sb = new StringBuilder("<span class=\"").
                        append(!(Boolean)property.getValue() ? "icon-tick" : "icon-close").
                        append("\"></span>");
                    return sb.toString();
                }

                Object value = property.getValue();
                if (value == null || StringUtils.isEmpty(String.valueOf(value))) {
                    return "-";
                }
                return super.formatPropertyValue(rowId, colId, property);
            }
        }, translator);