From 6e99fb264c5e1377a23975572bb58a80872830a9 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Thu, 3 Apr 2003 14:32:09 +0000 Subject: [PATCH] Added a getMatches() to CPD git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1683 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/src/net/sourceforge/pmd/cpd/CPD.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pmd/src/net/sourceforge/pmd/cpd/CPD.java b/pmd/src/net/sourceforge/pmd/cpd/CPD.java index 93a7c704fc..c86e294fee 100644 --- a/pmd/src/net/sourceforge/pmd/cpd/CPD.java +++ b/pmd/src/net/sourceforge/pmd/cpd/CPD.java @@ -35,6 +35,10 @@ public class CPD { matchAlgorithm.findMatches(minimumTileSize); } + public Iterator getMatches() { + return matchAlgorithm.matches(); + } + public String getReport() { // yikes. there's a dire need for refactoring here. StringBuffer rpt = new StringBuffer();