|
Re: Checkstyle "hides a field" strategy. [message #468326 is a reply to message #468321] |
Wed, 05 August 2009 05:33 |
|
Hi,
If I remember correctly I have turned this check of. Best regards, Lars
ali wrote:
> Hello all,
>
> 'Just wondering if anyone knows of any standard or common practices to
> resolve this code style issue of "hides a field". I want to use
> meaningful variable names for both of my local and class variables, but
> I�m not sure which one to modify of what to modify it too...
>
> Does anyone insert trailing or leading characters to denote class
> variables, or perhaps append the word "param" to the end of the
> parameter names? I appreciate why and how this issue occurs � I am
> seeking advice about a standard naming approach to solving it (best
> practice).
>
> Here's an example - checkstyle may complain that the "value" parameter
> "hides a field":
>
> public class MyClass {
> private int value;
> public void setValue(int value) {
> this.value = value;
> }
> }
>
--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03339 seconds