Commit Graph

8 Commits

Author SHA1 Message Date
Tagir Valeev
a9069f60e8 [java-intentions] IterateOverIterable: disable for empty lists and newly-created arrays (IJ-CR-8575)
GitOrigin-RevId: 78ef76ab85b1e051d0bb887801379136be041c5b
2021-05-11 12:00:19 +00:00
Tagir Valeev
62f9692d64 [java] Improve quick-fixes on expression statements:
1. Put 'Iterate' and 'Introduce local variable' above 'Insert semicolon' where possible
2. Add 'Insert return' fix where possible (IDEA-267682)
3. Display type in 'Iterate' fix name (IDEA-267796)

GitOrigin-RevId: 08aa00adc0f7f1144c306a5dfdd279319b0af2ca
2021-04-23 15:24:05 +03:00
Anna Kozlova
3bde40ddcf java: remove redundant semicolon after iter template (IDEA-261175)
GitOrigin-RevId: b5a138d934b117c91bed3b17f5a641cdfebf4e02
2021-02-11 21:35:26 +00:00
Roman.Ivanov
5076e08145 set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests 2018-06-26 12:04:00 +07:00
Roman.Ivanov
5858ba478c fix tests for foreach formatting 2018-06-05 11:31:17 +07:00
Anna Kozlova
becd937093 EA-46672 - CCE: PsiThisExpressionImpl.getType 2013-05-31 13:48:48 +04:00
anna
b68e03ec53 hide iterate intention for non expression statements (IDEA-83625) 2012-03-28 16:37:48 +02:00
Anna Kozlova
24ec63e74e iterate over: correct offset to detect template applicability 2012-02-02 21:17:52 +04:00