4 Commits

Author SHA1 Message Date
Tagir Valeev
8560c6a5d1 [java-inspections] More preview tests
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
2022-07-27 10:00:31 +00:00
Tagir Valeev
7906dd0dcd RedundantCastUtil: fix isCastRedundant (avoid checking another cast) 2019-03-11 17:53:32 +07:00
Tagir Valeev
1f132fb51e ConstantConditionalExpressionInspection: respect precedence when creating type-cast
Fixes EA-137355 - CCE: ConstantConditionalExpressionInspection$ConstantConditionalFix.doFix
Also fix removing parentheses inside RemoveRedundantCastUtil#removeCast
2019-02-21 13:14:16 +07:00
Tagir Valeev
04df6bad09 ConstantConditionalExpressionInspection: add cast if necessary when type changes
Fixes IDEA-194648 Simpler expression auto-fix results in different code
2018-06-29 15:37:46 +07:00