From 9ccbdd667a9bbf2482a6c4a900b797c46f3c015e Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Wed, 7 Aug 2002 14:04:22 +0000 Subject: [PATCH] split renderers into separate classes git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@640 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/cpd/CPD.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pmd/src/net/sourceforge/pmd/cpd/CPD.java b/pmd/src/net/sourceforge/pmd/cpd/CPD.java index 31589dec9d..7950c3da8e 100644 --- a/pmd/src/net/sourceforge/pmd/cpd/CPD.java +++ b/pmd/src/net/sourceforge/pmd/cpd/CPD.java @@ -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)); }