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)); }