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:
Tom Copeland
2005-05-17 14:22:35 +00:00
parent 0cd1105bb1
commit e27420674d

View File

@ -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('<');