problem with getter/setter generation

Hi,

(I tried some other ITN forums without comments, hope to have more feedback here:)

I have the following case, where i think IDEA (3.0.4 and EAP) is buggy.

If I generate getter for m_pKey (or pKey) i receive:

int getpKey() {
return m_pKey;
}

I would think that instead of this, the following should
be generated:

int getPKey() {
return m_pKey;
}

As a rule i would say the letter after "get", "set" or "is" should be ALLWAYS in uppercase. Here are some samples to hopefully clarify what i try to say:)



Am i alone with this problem, really?

2 comments
Comment actions Permalink

What is your field prefix in code style settings?

"Hanack" <no_mail@jetbrains.com> wrote in message
news:681660.1065160830366.JavaMail.itn@is.intellij.net...

Hi,

>

(I tried some other ITN forums without comments, hope to have more

feedback here:)
>

I have the following case, where i think IDEA (3.0.4 and EAP) is buggy.

>

If I generate getter for m_pKey (or pKey) i receive:

>

int getpKey() {
return m_pKey;
}

>

I would think that instead of this, the following should
be generated:

>

int getPKey() {
return m_pKey;
}

>

As a rule i would say the letter after "get", "set" or "is" should be

ALLWAYS in uppercase. Here are some samples to hopefully clarify what i try
to say:)
>

real world variable getter getter generation > * > D-Box dBox getDBox HTML html getHtml VISA card visaCard getVisaCard ]]>

>

Am i alone with this problem, really?



0
Comment actions Permalink

What is your field prefix in code style settings?


It doesn't matter! I normally use "m_" but even when i use the default settings with no prefix this will not work!



0

Please sign in to leave a comment.