The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
info/magnolia/module/googlesitemap/app/subapp/sitemapdetail/component/SiteMapTable.java | 47 |
info/magnolia/module/googlesitemap/app/subapp/sitemapdetail/component/SiteMapTreeTable.java | 48 |
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); |