Commit Graph

10 Commits

Author SHA1 Message Date
Tagir Valeev
f5975ad8a2 Variable finality highlighting fixes
Unreachable branches are analyzed for twice assignment, but constants are evaluated.
Fixes IDEA-186321 Bad code green: non-iterating for-loop update
Fixes IDEA-186304 good code red: field might not have been initialized in unreachable branch
Fixes (mostly) IDEA-186305 good code red: variable might already have been assigned to
2018-02-17 12:35:03 +07:00
Tagir Valeev
63231c630d IDEA-186381 bad code green: variable might already have been assigned
Fixed parentheses handling on the left-side of assignment and in unary operations
Fixed error message priority
2018-02-09 12:45:18 +07:00
Tagir Valeev
c8f3d1e20c ControlFlowUtil#isVariableAssignedInLoop: evaluate constant conditions
Fixes IDEA-186306 good code red: variable might be assigned in loop
2018-02-08 13:29:49 +07:00
Tagir Valeev
bf640e78a9 ControlFlowAnalyzer: fix control flow for assert (IDEA-186305) 2018-02-08 11:57:02 +07:00
Alexey Kudravtsev
db48c64473 use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests 2016-07-20 15:47:18 +03:00
Bas Leijdekkers
e65ecdae08 EA-59392 (NPE: ControlFlowAnalyzer.visitPostfixExpression) 2014-08-14 22:38:57 +02:00
Bas Leijdekkers
8d7f95a137 IDEA-26350 (Bad Java code is green: variable might not have been initialized) 2013-09-11 16:18:45 +02:00
Bas Leijdekkers
ba3c923024 IDEA-93530 (bad code green: cannot assign a value to final variable) 2013-09-10 23:09:52 +02:00
anna
ae8ab9589e IDEA-103758 2013-04-05 17:02:57 +02:00
Alexey Kudravtsev
735a9d17a8 java highlighting tests moved to community 2010-06-25 12:46:38 +04:00