The following document contains the results of PMD's CPD 5.0.2.
File | Line |
---|---|
uk/ac/ebi/intenz/domain/reference/Book.java | 411 |
uk/ac/ebi/intenz/domain/reference/Reference.java | 153 |
xmlStringBuffer.append("</medline>\n"); } return xmlStringBuffer.toString(); } private String encodeTags(String name) { Pattern p = Pattern.compile("<"); Matcher m = p.matcher(name); Pattern p2 = Pattern.compile(">"); Matcher m2 = p2.matcher(m.replaceAll("<")); return m2.replaceAll(">"); } private String removeFormatting(String text) { text = text.replaceAll("\\<small\\>", ""); text = text.replaceAll("\\<\\/small\\>", ""); text = text.replaceAll("\\<b\\>", ""); text = text.replaceAll("\\<\\/b\\>", ""); text = text.replaceAll("\\<i\\>", ""); text = text.replaceAll("\\<\\/i\\>", ""); return text; } } |