Tightened up XML a bit
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3499 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -285,7 +285,11 @@ public class SimpleNode implements Node , IPositionProvider {
|
||||
* @return a String with an XML representation of this node and its children
|
||||
*/
|
||||
public String asXml() {
|
||||
final String cn = getClass().getName();
|
||||
String cn = getClass().getName();
|
||||
if (cn.indexOf('.') != -1) {
|
||||
cn = cn.substring(cn.lastIndexOf('.')+1);
|
||||
}
|
||||
|
||||
final StringBuffer sb = new StringBuffer();
|
||||
|
||||
sb.append('<');
|
||||
|
Reference in New Issue
Block a user