Commit Graph

12 Commits

Author SHA1 Message Date
Tagir Valeev
b3325f5116 Preserve code block when variable from lambda body conflicts with later declaration
Fixes IDEA-196540 TrivialFunctionalExpressionUsageInspection produces code with variable redefinitions
2018-08-01 20:52:34 +07:00
Anna.Kozlova
f67eaef468 trivial functional expression fix for empty lambda code block 2017-08-08 13:28:41 +02:00
Tagir Valeev
5c33eecb2e TrivialFunctionalExpressionUsage bugfixes & refactoring
Fixes IDEA-176019 Trivial functional expression: do not inline if parameter produces side effect and evaluated not once
Fixes EA-103938 (invalid PSI was used if inlining replaced the whole method)
Fixes inlining of functional expression
2017-07-18 17:39:34 +07:00
yarik
ced545552a [java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you 2017-06-20 14:48:26 +03:00
Tagir Valeev
b209ade15d TrivialFunctionalExpressionUsageInspection: disable for multi-statement lambda in "for" init/update 2017-05-29 12:19:05 +07:00
Anna Kozlova
5e77c443de simplification following IDEA-CR-21392 2017-05-26 13:36:45 +03:00
Anna Kozlova
770ebf45af disable trivial functional expression for body with returns (IDEA-173436) 2017-05-25 16:06:05 +03:00
Tagir Valeev
4aaa6a4cc2 IDEA-166636 A bunch of bugs in TrivialFunctionalExpressionUsageInspection (Method call can be simplified) 2017-01-16 12:52:08 +07:00
Anna.Kozlova
1a2b94105e EA-78630 - CCE: TrivialFunctionalExpressionUsageInspection$ReplaceWithLambdaBodyFix.replaceWithLambdaBody 2016-04-22 17:02:00 +02:00
Anna Kozlova
aad1c273e1 trivial functional expressions usage: inline args if provided (IDEA-131090) 2016-01-12 16:23:25 +01:00
Anna Kozlova
e39f57a94e trivial functional expressions usage: replace anonymous 2016-01-12 16:23:25 +01:00
Anna Kozlova
fee6bc1ba5 trivial functional expressions usage (IDEA-131090) 2016-01-12 13:45:16 +01:00