Incorrect(?) "setter not used" warning

I guess that the attached screenshot says it all



Attachment(s):
Setter is not used.png
0
7 comments
Avatar
Permanently deleted user

Whi is it invalid?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gabriel Lozano-Moran" <no_reply@jetbrains.com> wrote in message
news:5765006.1164360111262.JavaMail.itn@is.intellij.net...
>I guess that the attached screenshot says it all


0
Avatar
Permanently deleted user

Sorry, I see the problem

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:ek6f62$j96$1@is.intellij.net...

Whi is it invalid?

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gabriel Lozano-Moran" <no_reply@jetbrains.com> wrote in message
news:5765006.1164360111262.JavaMail.itn@is.intellij.net...

>>I guess that the attached screenshot says it all
>



0
Avatar
Permanently deleted user

Fixed in the next build

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gabriel Lozano-Moran" <no_reply@jetbrains.com> wrote in message
news:5765006.1164360111262.JavaMail.itn@is.intellij.net...
>I guess that the attached screenshot says it all


0
Avatar
Permanently deleted user

Gabriel Lozano-Morán wrote:

I guess that the attached screenshot says it all


Hm, I think the warning is valid. Since the property WagonId is declared
private the compiler can tell if set is used or not. And I suppose
WagonId is not assigned a value anywhere within your class.

If you make the setter public the hint should go away.

Ciao,
Jens

--
http://www.jenswinter.com

0
Avatar
Permanently deleted user

Acutally I am using the setter in the getter.

0
Avatar
Permanently deleted user

Gabriel Lozano-Morán wrote:

Acutally I am using the setter in the getter.


Oops. And I thought I looked properly before sending the posting. :)


Ciao,
Jens

--
http://www.jenswinter.com

0
Avatar
Permanently deleted user

It's my fault I should have mentioned it

0

Please sign in to leave a comment.