oops, pattern didn't check for prefix in AvoidPrefixingMethodParameters
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6225 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
1 parent
4b9883db76
commit
ae1cba8d35
2 files changed
+2
-1
No files matched your search
+1
@@ -60,6 +60,7 @@ AvoidPrefixingMethodParameters basic test case: in is not a prefix, not using ca
|
||||
<code><![CDATA[
|
||||
public class Foo {
|
||||
public void m(int index) {}
|
||||
public void n(int timeout) {}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
@@ -715,7 +715,7 @@ behavior with Javadoc.
|
||||
<value>
|
||||
<![CDATA[
|
||||
//MethodDeclaration/MethodDeclarator/FormalParameters/FormalParameter/VariableDeclaratorId[
|
||||
matches(@Image,'in[A-Z].*','out[A-Z].*','in$','out$')
|
||||
matches(@Image,'^in[A-Z].*','^out[A-Z].*','^in$','^out$')
|
||||
]
|
||||
]]>
|
||||
</value>
|
||||
|
||||
Reference in new issue
Block a user