Tagir Valeev
2c7124b0b0
ExpressionUtils#getTopLevelExpression; used in SurroundWithTryCatchFix
...
Fixes EA-131551 - NPE: EnsureCodeBlockImpl.splitIf
We need to avoid custom logic for processing && chains, etc. in RefactoringUtil#ensureCodeBlock.
2018-11-07 10:45:38 +07:00
Anna Kozlova
810a23812f
disable surroundWith fix for var typed locals with non-denotable inferred types
...
IDEA-CR-33936
2018-06-25 16:28:59 +03:00
Anna Kozlova
1a5768f1cd
surround with try/catch: replace var with explicit type (IDEA-191069)
...
when declaration has to be split
2018-06-20 14:49:51 +03:00
Anna.Kozlova
f86e0a31ea
disable exceptional fixes for local classes (IDEA-189596)
2018-04-09 11:38:11 +02:00
Tagir Valeev
6e87cb9bfd
RefactoringUtil#ensureCodeBlock enhanced and used in Surround with try-catch
...
Fixes IDEA-178781 "Surround with try-catch" QuickFix for "Unhandled exception" in a field initializer
Enables stream-to-loop in field initializer
Fixes stream-to-loop in for initializer
Disables stream-to-loop in for update
2017-09-12 13:34:43 +07:00
Anna Kozlova
2e736c18fe
surround with try-catch: expand expression lambda to perform operation (IDEA-134500)
2015-03-26 12:07:12 +01:00
Anna Kozlova
d27529ff3b
normalize array initializer in surround with try catch (IDEA-128218)
2014-08-14 16:04:52 +04:00
anna
be9e2fa9f7
testdata fixed
2013-05-06 20:55:21 +02:00
anna
1cc7b6ee11
lambda: check unhandled exceptions for method references; disable surround with try/catch accordingly (IDEA-98966)
2013-01-14 16:51:11 +01:00
Roman Shevchenko
618e0e3ac0
Surround with try/catch fix made aware of try-with-resources
2011-03-01 20:34:18 +01:00