Tagir Valeev
7e1064ea3c
[java-intentions] More preview tests; minor fixes
...
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
2022-07-29 17:55:13 +00:00
Anna Kozlova
724ed16f6f
[java] replace default catch block template (IDEA-161593)
...
`throw e` won't fix the compilation error, comment - is not really better than empty catch block.
GitOrigin-RevId: ea002c332900b032392e766f3dd13fe3258ad49c
2022-01-14 20:39:23 +00:00
Anna Kozlova
5a42eae302
[java]: surround with: prefer same simple names for catch parameters (IDEA-269830)
...
GitOrigin-RevId: 9f8b5ced2ec29cbf0f23ccfdf18d4888a55e440d
2021-05-25 06:42:12 +00:00
Tagir Valeev
47b9916057
Surround with try-catch: disable in resources
...
There's another fix 'Add catch to try' and this is most likely what people want. Having too many fixes is confusing.
GitOrigin-RevId: c6c03bf52a9b59a14e7e8025e0fa525de7872630
2020-07-20 05:06:04 +00:00
Tagir Valeev
5e592af488
SurroundWithTryCatchFix: support local classes properly
...
GitOrigin-RevId: 50ee098d1287f976331692361ff29bf3dbbbd26a
2020-04-08 08:41:53 +00:00
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