The following document contains the results of PMD's CPD 4.1.
File | Line |
---|---|
org\apache\commons\convert\conversion\AbstractConversion.java | 119 |
org\apache\commons\convert\conversion\AbstractConversionFactory.java | 149 |
return "ConversionFactory[" + from + "->" + to + "]"; } /** * Converts a class to a string name for debugging. * * @param cls the class to convert * @return the class name */ private String convertClassToName(Class cls) { if (cls == null) { return "null"; } String str = cls.getName(); int pos = str.lastIndexOf('.'); if (str.substring(0, pos).equals("java.lang")) { str = str.substring(pos + 1); } if (str.substring(0, pos).equals("java.util")) { str = str.substring(pos + 1); } return str; } |