fixed bug in CPD directory scanning
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@660 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -73,8 +73,10 @@ public class CPD {
|
||||
String[] possibles = dir.list(filter);
|
||||
for (int i=0; i<possibles.length; i++) {
|
||||
File tmp = new File(dir + System.getProperty("file.separator") + possibles[i]);
|
||||
if (recurse && tmp.isDirectory()) {
|
||||
scanDirectory(tmp, list, true);
|
||||
if (tmp.isDirectory()) {
|
||||
if (recurse) {
|
||||
scanDirectory(tmp, list, true);
|
||||
}
|
||||
} else {
|
||||
list.add(new File(dir + System.getProperty("file.separator") + possibles[i]));
|
||||
}
|
||||
|
@ -156,6 +156,7 @@ public class GUI implements CPDListener {
|
||||
resultsTextArea.append(renderer.render(cpd));
|
||||
} catch (IOException ioe) {
|
||||
ioe.printStackTrace();
|
||||
JOptionPane.showMessageDialog(null, "Halted due to " + ioe.getClass().getName() + "; " + ioe.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user