split renderers into separate classes

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@640 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-08-07 14:04:22 +00:00
parent 89e8b4f11f
commit 9ccbdd667a

@ -117,6 +117,7 @@ public class CPD {
CPD cpd = new CPD();
//cpd.addListener(new ListenerImpl());
cpd.setListener(new CPDNullListener());
cpd.setMinimumTileSize(26);
try {
/*
cpd.add("1", "public class Foo {}");
@ -139,10 +140,7 @@ public class CPD {
ioe.printStackTrace();
return;
}
long start = System.currentTimeMillis();
cpd.setMinimumTileSize(26);
cpd.go();
System.out.println((System.currentTimeMillis() - start));
CPDRenderer renderer = new TextRenderer();
System.out.println(renderer.render(cpd));
}