Commit Graph

15 Commits

Author SHA1 Message Date
Tagir Valeev
6ffb7e417e [java-dfa] Extract "Constant conditions" into separate "Constant values" inspection (IDEA-58235)
GitOrigin-RevId: 95a81fcd1546afec31afc2a044a9ba5fa1337411
2022-09-08 21:30:59 +00:00
Tagir Valeev
7e1064ea3c [java-intentions] More preview tests; minor fixes
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00
Tagir Valeev
4a9b9b3cc2 [java-dfa] Remove useless fixes when value is known to be always null
Fixes IDEA-289497 'NullPointerException' recommendations contradiction

GitOrigin-RevId: 07be3f2ee5ce03bd7380b563806fcad03fb2a0f5
2022-03-03 10:49:26 +00:00
Tagir Valeev
01b72f856a DFA: branch-specific reporting (IDEA-203016) 2018-11-27 16:57:29 +07:00
Tagir Valeev
1f800bf982 ReplaceWithTernaryOperatorFix: use template instead of selection (IDEA-202345) 2018-11-18 16:26:42 +07:00
Tagir Valeev
29e2383afd IDEA-179370 "Constant conditions and exceptions" quickfix "Replace with 'x != null ?:'" does nothing 2017-09-22 16:20:55 +07:00
Tagir Valeev
6d7d4c9a53 ReplaceWithTernaryOperatorFix: method reference scenario as separate class
Review ID: IDEA-CR-23763
2017-08-23 15:06:04 +07:00
Tagir Valeev
1e9f078fa4 Quick-fix for NPE in method reference to convert to lambda and add ?: (IDEA-176699) 2017-08-11 11:17:57 +07:00
Tagir Valeev
eaec99dcce DataFlowInspection: npe fixes fixed
Fixes duplicating NPE expression are disabled when expression has side-effect (not when it's a method call)
Parentheses added to generated code when necessary
2017-07-27 19:06:34 +07:00
peter
55f0e703e7 update dfa intention test expectations after IDEA-149904 2016-01-21 20:22:23 +01:00
peter
b3c40ee773 dfa: highlight just method reference name on possible NPE warnings (IDEA-149904) 2016-01-20 16:47:53 +01:00
peter
fd62fed994 dfa: don't suggest to convert lvalue to ternary expression (IDEA-140519) 2015-05-20 15:21:20 +02:00
Alexey Kudravtsev
0f00f05948 restored selection after quickfix 2013-05-27 11:13:27 +04:00
peter
8a3b6547f6 IDEA-99725 "Constant conditions & exceptions" inspection produces invalid code 2013-02-03 22:42:55 +01:00
Danila Ponomarenko
c152ac976f IDEA-62374 Suggest ternary operation to avoid NPE implemented 2012-05-28 14:55:25 +04:00