Commit Graph

3471 Commits

Author SHA1 Message Date
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
Tagir Valeev
d3ff2c7178 ChangeStringLiteralToCharInMethodCallFix: support parenthesized args 2018-07-11 14:43:46 +07:00
Tagir Valeev
625def0299 FoldExpressionIntoStream, StreamApiMigration: EquivalenceChecker used 2018-07-11 14:43:44 +07:00
Tagir Valeev
4b66e1de3d LambdaCanBeMethodReferenceInspection: support parentheses like s -> (s) instanceof Xyz or s -> (s) != null, etc. 2018-07-11 14:43:43 +07:00
Tagir Valeev
0184274f8c ExtractChainedMapAction: disable on non-first variable; enable for parenthesized lambda 2018-07-11 14:43:43 +07:00
Tagir Valeev
3fad9a22f4 PsiJavaCodeReferenceElementImpl: preserve tokens (comments/whitespace) between name element and parameter list 2018-07-11 14:43:42 +07:00
Roman.Ivanov
9265b54df5 CreateTypeParameterFromUsage: do not suggest fix when reference is part of class literal: IDEA-195266 2018-07-10 14:52:17 +07:00
Tagir Valeev
e3b4dbaac1 ReplaceCastWithVariableAction: support parentheses 2018-07-10 14:13:47 +07:00
Tagir Valeev
b44aed3ba0 UseBulkOperationInspection: deparenthesize qualifier 2018-07-10 14:13:45 +07:00
Tagir Valeev
105bd77c57 ComparatorCombinatorsInspection: support parentheses around lambda 2018-07-10 14:13:43 +07:00
Tagir Valeev
ec98df958b StreamApiMigration: parentheses in BufferedReader.lines() scenario supported 2018-07-10 14:13:38 +07:00
Tagir Valeev
ff72facb5c AddTypeCastFix: disallow void type 2018-07-10 14:13:37 +07:00
Dmitry Batkovich
2a035a9a12 add method qualifier fix should be not available for unresolved qualified method call 2018-07-09 13:39:37 +03:00
Tagir Valeev
99387de7f5 IDEA-195069 Quick Fix: "Transform to mutable collection" in response to "Immutable object is modified" inspection 2018-07-09 16:23:35 +07:00
Roman.Ivanov
9f10da57c4 ChangeUIDAction: do not show intention in presence of initializers: IDEA-195234 2018-07-09 15:24:39 +07:00
Tagir Valeev
9ba38bc486 StreamApiMigrationInspection: skip parentheses in loop bound 2018-07-09 12:31:45 +07:00
Tagir Valeev
be51bc94e1 RedundantCastUtil: some fixes for doubly parenthesized qualifiers 2018-07-09 12:31:42 +07:00
Anna.Kozlova
a06125f854 add type cast as fix for unresolved calls (IDEA-185569) 2018-07-06 18:12:07 +02:00
Tagir Valeev
ee605ddc46 AssignFieldFromParameterAction: check whether final field is already initialized 2018-07-06 17:52:50 +07:00
Tagir Valeev
c08578a8b8 AnonymousCanBeLambdaInspection: support parenthesized anonymous class 2018-07-06 16:30:52 +07:00
Tagir Valeev
abc5d98a07 InlineStreamMapAction: testdata fixed 2018-07-06 15:13:14 +07:00
Tagir Valeev
df28f9a4c0 RedundantExplicitCloseInspection: support parentheses in close(); fixed support of resource expression; check field qualifiers 2018-07-06 15:13:13 +07:00
Tagir Valeev
b0cc9d68d4 InlineStreamMapAction: support parenthesized chain 2018-07-06 15:13:12 +07:00
Tagir Valeev
5639829e97 LambdaCanBeMethodReferenceInspection: support parentheses around whole lambda body 2018-07-06 15:13:11 +07:00
Tagir Valeev
1325835ce7 StreamToLoop: support parenthesized collectors 2018-07-06 13:58:52 +07:00
Tagir Valeev
d327e1acdc FoldExpressionIntoStreamInspection: deparenthesize when testing whether it's too simple case 2018-07-06 13:58:48 +07:00
Tagir Valeev
c3778b8706 CreateLocalVarFromInstanceofAction: use EquivalenceChecker which is more robust (in particular against parentheses) 2018-07-06 13:58:44 +07:00
Tagir Valeev
79ab032b1b ReturnSeparatedFromComputationInspection: support parentheses 2018-07-06 13:58:44 +07:00
Tagir Valeev
d516456163 CountingLoop: support parenthesized condition 2018-07-06 13:58:43 +07:00
Tagir Valeev
2217968c28 StreamToLoop: support functions in parentheses 2018-07-06 13:58:36 +07:00
Roman.Ivanov
b9b71c6717 SortContentAction: limit intention in enums only to declaration of enum 2018-07-06 11:30:29 +07:00
Roman.Ivanov
0576cb35e5 SortContentAction: allow not only literal expressions to sort 2018-07-06 11:30:28 +07:00
Anna.Kozlova
d612b2c65b create from usage: ensure that refs for methods/locals are not mixed (IDEA-195066) 2018-07-05 18:13:11 +02:00
Tagir Valeev
52053135e8 LambdaCanBeMethodReferenceInspection: support parenthesized call arguments 2018-07-05 13:25:33 +07:00