forked from phoedos/pmd
verify #1346 VariableNamingConventions do not work for method parameters
This commit is contained in:
@ -330,6 +330,21 @@ public class X {
|
||||
public class X {
|
||||
private native void stream_dip_set_data(long stream, long dip_x,
|
||||
long dip_z);
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description>#1346 VariableNamingConventions do not work for method parameters</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<expected-linenumbers>3</expected-linenumbers>
|
||||
<rule-property name="checkParameters">true</rule-property>
|
||||
<rule-property name="checkNativeMethodParameters">false</rule-property>
|
||||
<code><![CDATA[
|
||||
public class X {
|
||||
private long horsTout;
|
||||
public void setHorsTout(long hors_tout) {
|
||||
this.horsTout = hors_tout;
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
Reference in New Issue
Block a user