Commit Graph

3504 Commits

Author SHA1 Message Date
Tagir Valeev
85f0872d9b StreamToLoop: support parentheses inside flatMap 2018-09-19 12:26:21 +07:00
Tagir Valeev
65049765b0 StreamRefactoringUtil#isRefactoringCandidate disable if method reference is not resolved 2018-09-19 12:20:47 +07:00
Anna.Kozlova
0acc44b025 exceptions collection: don't visit anonymous class body (IDEA-198967)
simple visit of expression list doesn't work as walking visitor starts to go down when it starts an element and element has no children
2018-09-18 18:54:06 +02:00
Alexey Kudravtsev
858e241d05 add test case for IDEA-CR-36995 2018-09-17 18:33:55 +03:00
Tagir Valeev
b7688efea7 TerminalOperation: check arguments count for "collectingAndThen" collector.
Fixes EA-127467 - AIOOBE: TerminalOperation.fromCollector
2018-09-17 09:30:59 +07:00
Alexey Kudravtsev
544c3b670f fix for changing parameter types for method which used to extend the generic-parameter-method which was refactored to bounded wildcards and "both method signatures have same erasure" error appeared as a result 2018-09-14 16:01:02 +03:00
Tagir Valeev
e890bb870b IDEA-198546 "Replace cast with variable" inserts unresolved reference 2018-09-12 16:10:45 +07:00
Roman.Ivanov
824da44572 CreateTypeParameterFromUsageFix: stop searching variants when inside enum 2018-09-12 10:54:42 +07:00
Roman.Ivanov
8eb4c7c109 SortContentAction: more accurate \n placement in presence of EOL comments: IDEA-198267 2018-09-10 19:04:32 +07:00
Tagir Valeev
aee5f482a6 JoiningMigration: preserve comments in removed toString() call 2018-09-07 18:31:22 +07:00
peter
390caa70ad disable "swap if statements" intention where it would fail 2018-09-07 12:37:21 +02:00
Tagir Valeev
1e73838ca1 StreamToLoop: disallow peek which cannot finish normally as the result will not be compilable 2018-09-07 17:02:26 +07:00
Dmitry Batkovich
54ee69b6df functional expression can be folded quick fix should work in case of statement lambda 2018-09-06 11:48:09 +03:00
Tagir Valeev
a0f1b41336 TerminalBlock: preserve comments after continue statement (not in the proper place though) 2018-09-03 19:57:02 +07:00
Roman Shevchenko
2bad8db30c [java] allows '@author' tag in module docs 2018-08-30 09:03:45 +03:00
Roman.Ivanov
2de5249609 SortContentAction: fix \n placement, better layout 2018-08-30 11:33:05 +07:00
Roman.Ivanov
a816ff3861 SortContentAction: fix EOL comment capturing another elements while codegen 2018-08-30 11:31:17 +07:00
Roman.Ivanov
40ba62d4d8 SortContentAction: fix javadoc movement while sorting enum constants 2018-08-30 11:31:17 +07:00
Anna Kozlova
56eface1fa expand static import: available on the onDemand import (IDEA-175102) 2018-08-29 11:46:30 +03:00
Anna Kozlova
de2d0de27f make static: remove inappropriate modifiers, add method body if needed (IDEA-197813) 2018-08-27 15:33:03 +03:00
Anna Kozlova
6b0b9c5033 add single static import: ensure accessible class (from reference) is chosen (IDEA-144708) 2018-08-24 17:50:30 +03:00
Anna Kozlova
a93b768eea unused class when used through import only should not be treated as used (IDEA-99444) 2018-08-23 20:55:49 +03:00
Anna Kozlova
e5d1930008 testdata for IDEA-138636 2018-08-20 19:18:34 +03:00
Anna Kozlova
0ed6ea2e4b testdata for IDEA-106811 2018-08-20 19:18:33 +03:00
Tagir Valeev
58508499c1 CreateFromUsageUtils#getExpectedInformation: support parenthesized expressions 2018-08-20 18:26:16 +07:00
Anna Kozlova
de4e4520b3 testdata for IDEA-53597 2018-08-20 11:08:37 +03:00
Anna Kozlova
ae626fce8f testdata for IDEA-154080 2018-08-17 17:54:41 +03:00
Anna.Kozlova
2a8a14a528 convert field to local: preserve comments 2018-08-14 15:06:25 +02:00
Alexey Kudravtsev
34f65ccec8 javadoc references must resolve despite current resolve scope (Too often javadoc for interface references implementation which should not show up red) 2018-08-10 15:44:39 +03:00
Anna.Kozlova
779291d906 ensure fresh variables for the same context don't conflict by names (IDEA-196642) 2018-08-06 19:35:12 +02:00
Tagir Valeev
b3325f5116 Preserve code block when variable from lambda body conflicts with later declaration
Fixes IDEA-196540 TrivialFunctionalExpressionUsageInspection produces code with variable redefinitions
2018-08-01 20:52:34 +07:00
Anna.Kozlova
fbb178fb85 inference: check intersection type for raw conversion separately (IDEA-196523) 2018-08-01 11:52:03 +02:00
Anna.Kozlova
f73b89ad6a add static import: take into account packages which should be always imported on demand (IDEA-127947) 2018-07-30 12:34:57 +02:00
Tagir Valeev
229f9206e8 FoldExpressionIntoStream: disable for non-string separator and automatically convert char
CharToStringIntention#stringForCharLiteral moved to PsiLiteralUtil
Fixes IDEA-195621 "Expression can be folded into Stream chain" produces red code when delimiter is char type
2018-07-29 13:41:30 +07:00
Tagir Valeev
0ee4ea1fad IDEA-195573 groupingBy test 2018-07-29 09:25:38 +07:00
Tagir Valeev
9d96fb9a63 IDEA-195573 Support collectingAndThen in Stream-to-loop (for now only if downstream is collection-based) 2018-07-29 09:14:48 +07:00
Anna.Kozlova
84e2da2eeb add single import: ensure current ref to import is taken into account when check the limit (IDEA-127949) 2018-07-27 18:48:57 +02:00
Tagir Valeev
a6643bdab2 StreamToLoopInspection: handle labeled expression statement (found by property testing) 2018-07-27 13:09:38 +07:00
Anna.Kozlova
1479d66bc6 disable wrap with fixes in switch cases where only constants are accepted (IDEA-196151) 2018-07-26 16:23:43 +02:00
Anna.Kozlova
7cd6f23717 disable on-demand static import inside import statements (IDEA-196022) 2018-07-26 13:50:13 +02:00
Tagir Valeev
ab3c5b7e5a OptionalUtil#getMapTypeArgument: support PsiEmptyExpressionImpl input
Fixes EA-125157 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
2018-07-26 17:41:49 +07:00
Roman.Ivanov
16e9fb30d3 SortContentAction: add parens handling for enum expressions 2018-07-26 14:49:59 +07:00
Anna.Kozlova
16f0977481 diamonds: simulate resolved constructor with generated static factory (IDEA-195813) 2018-07-23 19:20:55 +02:00
Roman.Ivanov
8f1873cbcf CreateTypeParameter: don't suggest fix inside type parameter IDEA-195832 2018-07-23 10:58:21 +07:00
Roman Shevchenko
547f2b3967 [java] skips reference check for array annotations (IDEA-195612) 2018-07-16 18:13:38 +02:00
Anna.Kozlova
23e9412db6 non reifiable types: erase to avoid illegal generics array creation (IDEA-195562) 2018-07-16 13:56:54 +02:00
Anna.Kozlova
378ea0e334 don't fail to attach fixes on invalid code
EA-122929 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
2018-07-16 10:43:52 +02:00
Anna.Kozlova
7f79852971 disable Override method intention for constructor 2018-07-12 11:35:33 +02:00
Roman.Ivanov
7b618f5a58 SortContentAction: fix another comment handling problem 2018-07-11 19:08:01 +07:00
Anna.Kozlova
ae3afdbaf8 switch -> if: fix comments line breaks (IDEA-195383) 2018-07-11 13:02:10 +02:00