Fixed bug 1593292 - The CPD GUI now works with the 'by extension' option selected.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4833 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-11-27 14:05:44 +00:00
parent a042a3ca33
commit 051136af5f
6 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
Fixed in CVS, and you can download a new pmd-3.8.jar file here: Fixed in CVS, and if you hit this page again:
http://infoether.com/~tom/pmd-3.8.jar http://pmd.sf.net/cpd.html
that contains that fix. you'll get an updated version that includes this fix.
Thanks, Thanks,
Tom Tom
The PMD book for $20: http://pmdapplied.com/ The PMD book for $20: http://pmdapplied.com/

View File

@ -16,6 +16,7 @@ Fixed bug 1579615 - OverrideBothEqualsAndHashcode no longer throws an Exception
Fixed bug 1580859 - AvoidDecimalLiteralsInBigDecimalConstructor now catches more cases. Fixed bug 1580859 - AvoidDecimalLiteralsInBigDecimalConstructor now catches more cases.
Fixed bug 1581123 - False +: UnnecessaryWrapperObjectCreation. Fixed bug 1581123 - False +: UnnecessaryWrapperObjectCreation.
Fixed bug 1592710 - VariableNamingConventions no longer reports false positives on certain enum declarations. Fixed bug 1592710 - VariableNamingConventions no longer reports false positives on certain enum declarations.
Fixed bug 1593292 - The CPD GUI now works with the 'by extension' option selected.
Applied patch 1551189 - SingularField false + for initialization blocks Applied patch 1551189 - SingularField false + for initialization blocks
Applied patch 1573981 - false + in CloneMethodMustImplementCloneable Applied patch 1573981 - false + in CloneMethodMustImplementCloneable
Applied patch 1574988 - false + in OverrideBothEqualsAndHashcode Applied patch 1574988 - false + in OverrideBothEqualsAndHashcode

View File

@ -11,7 +11,6 @@ public class ASTEnumElement extends SimpleJavaNode {
super(p, id); super(p, id);
} }
/** /**
* Accept the visitor. * * Accept the visitor. *
*/ */

View File

@ -2,7 +2,6 @@
package net.sourceforge.pmd.ast; package net.sourceforge.pmd.ast;
public class ASTSingleMemberAnnotation extends SimpleJavaNode { public class ASTSingleMemberAnnotation extends SimpleJavaNode {
public ASTSingleMemberAnnotation(int id) { public ASTSingleMemberAnnotation(int id) {
super(id); super(id);

View File

@ -456,7 +456,7 @@ public class GUI implements CPDListener {
private boolean isLegalPath(String path, LanguageConfig config) { private boolean isLegalPath(String path, LanguageConfig config) {
String[] extensions = config.extensions(); String[] extensions = config.extensions();
for (int i=0; i<extensions.length; i++) { for (int i=0; i<extensions.length; i++) {
if (path.endsWith(extensions[i])) return true; if (path.endsWith(extensions[i]) && extensions[i].length() > 0) return true;
} }
return false; return false;
} }

View File

@ -54,6 +54,7 @@
</subsection> </subsection>
<subsection name="Contributors"> <subsection name="Contributors">
<ul> <ul>
<li>Harald Rohan - Reported bug in CPD GUIr</li>
<li>classens - Noted missing varargs setting in ASTFormalParameter</li> <li>classens - Noted missing varargs setting in ASTFormalParameter</li>
<li>piair - Implemented StringBufferInstantiationWithChar, AvoidUsingOctalValues</li> <li>piair - Implemented StringBufferInstantiationWithChar, AvoidUsingOctalValues</li>
<li>Christopher Eagan - Reported bug in VariableNamingConventions</li> <li>Christopher Eagan - Reported bug in VariableNamingConventions</li>