4 Commits

Author SHA1 Message Date
Tagir Valeev
9c6aeba5b4 [java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
2022-07-22 11:54:00 +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
1bb6f68f9b EnsureCodeBlockImpl: support try splitting; used in AddAssertStatementFix
Fixes IDEA-230023 Applying `Assert != null` in try-with-resources leads to uncompilable code

GitOrigin-RevId: 3dc141010420570c061849287adaeb0fccbcf1f4
2020-01-10 11:37:34 +00:00
Anna Kozlova
8a56a94ff1 add assert != null fix should be disabled on the class level (EA-66814 - assert: AddAssertStatementFix.applyFix) 2015-03-23 20:33:20 +01:00