Commit Graph

11 Commits

Author SHA1 Message Date
Anna Kozlova
bd1a21a02a bump highest language level to 14, prepare to remove 13_preview
GitOrigin-RevId: ec42a9047ba63b0cbaddd8357d11ae2ed56ed6b6
2020-04-01 12:31:42 +00:00
Anna Kozlova
2e17e61cae remove language level 12 preview for 2019.3 release
IDEA would support latest preview only

GitOrigin-RevId: 6609e80acced9e1be07880c14de239f75afcc78b
2019-07-09 00:03:25 +03:00
Tagir Valeev
98347e5018 IDEA-203984 "Remove unreachable branches" quickfix breaks code on switch expression 2018-12-11 15:48:48 +07:00
Tagir Valeev
0d96d61986 IDEA-203119 Unwrap switch statement: support expressions 2018-11-28 19:00:05 +07:00
Tagir Valeev
81c9810bde IDEA-203119 Unwrap switch statement: support rule-cases and multiple expression cases 2018-11-28 19:00:04 +07:00
Tagir Valeev
6bc07438c6 Support of enhanced Java 12 switch statements in DFA (IDEA-202132, no expressions yet) 2018-11-16 12:06:16 +07:00
Tagir Valeev
747aec38c9 ConvertSwitchToIfIntention: better comments handling 2018-10-23 15:34:51 +07:00
Tagir Valeev
50abafa3f8 UnwrapSwitchLabelFix: when only one switch branch is reachable
Fixes IDEA-200651 Analysis for 'switch' statements may determine always truthy conditions on branches in addition to always falsy
Minor refactoring of reporting in DataFlowInspectionBase
2018-10-17 16:39:25 +07:00
Tagir Valeev
1554b0c513 DeleteSwitchLabelFix: check again whether the whole branch should be removed when fix is actually applied
Fixes IDEA-200021 Red code after applying 'Fix all 'Constant conditions and exception' problems in the file' with multiple case labels
2018-10-08 14:09:25 +07:00
Tagir Valeev
5663e0bde8 IDEA-200030 Quick-fix to remove unreachable should remove body only if previous branch has 'break' at the end 2018-10-08 10:57:50 +07:00
Tagir Valeev
5fc3612fa9 DeleteSwitchLabelFix: delete unreachable switch branch
Fixes IDEA-199692 Quickfix to delete unreachable switch branch reported by "constant conditions & exceptions"
2018-10-01 14:54:36 +07:00