CPD Results

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

Duplications

FileLine
uk/ac/ebi/intenz/domain/reference/Book.java411
uk/ac/ebi/intenz/domain/reference/Reference.java153
      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("&lt;"));

    return m2.replaceAll("&gt;");
  }

  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;
  }
}