verify #1346 VariableNamingConventions do not work for method parameters

This commit is contained in:
Andreas Dangel
2015-05-09 18:31:48 +02:00
parent 171fdb877f
commit bc41b00206

View File

@ -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>