forked from phoedos/pmd
Merge branch 'pr-97'
This commit is contained in:
@ -509,6 +509,7 @@ MethodDeclarator[count(FormalParameters/FormalParameter) = 0 or $checkParameteri
|
||||
[starts-with(@Image, 'get')]
|
||||
and
|
||||
ResultType/Type/PrimitiveType[@Image = 'boolean']
|
||||
and not(../Annotation//Name[@Image = 'Override'])
|
||||
]
|
||||
]]>
|
||||
</value>
|
||||
|
@ -35,6 +35,20 @@ public class Foo {
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Should not match on methods annotated with @Override
|
||||
]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class Foo implements Toggleable {
|
||||
@Override
|
||||
public boolean getEnabled() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Should match on multiple parameters when checkParameterizedMethods = true
|
||||
]]></description>
|
||||
<expected-problems>1</expected-problems>
|
||||
|
@ -83,6 +83,7 @@ you'll need a java8 runtime environment.
|
||||
* [#94](https://github.com/pmd/pmd/pull/94): Added property, fixed code climate renderer output and deleted unused rulessets (Apex)
|
||||
* [#95](https://github.com/pmd/pmd/pull/95): Apex - New apex rule AvoidDmlStatementsInLoops
|
||||
* [#96](https://github.com/pmd/pmd/pull/96): Clean up Code Climate renderer
|
||||
* [#97](https://github.com/pmd/pmd/pull/97): BooleanGetMethodName: Don't report bad method names on @Override
|
||||
|
||||
**Bugfixes:**
|
||||
|
||||
|
Reference in New Issue
Block a user