VariableNamingConventions do not work for method parameters
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Actually, it works for most of methods.
But an exception for this one :
public void setHorsTout(long hors_tout) {
this.horsTout = hors_tout;
}
Last edit: Denis SEMMAU 2015-05-06
I unfortunately can't reproduce this - are you sure, that you don't have marked the method parameter as "final"?
PMD 5.3.1 at least correctly identified the underscore in your example...
Here's the test case: https://github.com/pmd/pmd/commit/bc41b00206a709c2462c1d3844509afb45e12e7b
Well, I have sometimes this bug in specific context but I've not identified yet how to reproduce it !
I'll post a new ticket when i'm able to reproduce it !
Regards,
Thanks for checking! Yes, create a new ticket then.
I'll close this one.