"Nested assignments" intention

We have this intention set to warning to find constructs like "if (a = b)"
or "while (a = b)", but it also warns about following construct, which seems
completely legal and easy-to-understand for me:


Tom

2 comments
Comment actions Permalink

See here: http://www.jetbrains.net/jira/browse/IDEADEV-27


Thomas Singer (MoTJ) wrote:

We have this intention set to warning to find constructs like "if (a =
b)" or "while (a = b)", but it also warns about following construct,
which seems completely legal and easy-to-understand for me:

      parent != null;
>      component = parent, parent = component.getParent()) {
>     // do something with parent and component
> }]]>


Tom


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0
Comment actions Permalink


Should already be fixed in 3214. What build are you running?

--Dave Griffith

0

Please sign in to leave a comment.