Commit Graph
1401 Commits
Author SHA1 Message Date
Roman.Ivanov 16e9fb30d3 SortContentAction: add parens handling for enum expressions 2018-07-26 14:49:59 +07:00
Roman.Ivanov 8f1873cbcf CreateTypeParameter: don't suggest fix inside type parameter IDEA-195832 2018-07-23 10:58:21 +07: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 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
Tagir Valeev 5fc5a86cdf ConstantExpressionInspection: make it working inside parentheses 2018-07-05 13:25:29 +07:00
Tagir Valeev ee8d7915e8 SimplifyBooleanExpressionAction: do not warn on x = (true) 2018-07-05 13:25:28 +07:00
Bas Leijdekkers 3cc8a26e39 allow to split var declaration if it has denotable type 2018-07-04 15:56:52 +02:00
Dmitry Batkovich e34c1fed9e local redundant throws should respect exception subclasses when checking inherited method exceptions (add test) 2018-07-02 18:44:15 +03:00
Tagir Valeev e616b88fa7 IDEA-194396 Merge StringConstructorInspection into RedundantStringOperationInspection 2018-07-02 17:50:00 +07:00
Anna Kozlova a6db339c7d convert switch -> if: ignore whitespaces (IDEA-165260) 2018-06-29 20:20:36 +03:00
Tagir Valeev 04df6bad09 ConstantConditionalExpressionInspection: add cast if necessary when type changes
Fixes IDEA-194648 Simpler expression auto-fix results in different code
2018-06-29 15:37:46 +07:00
Anna Kozlova d0ad282d01 enable add initializer on variable declaration (IDEA-194742) 2018-06-28 16:58:46 +03:00
Roman.Ivanov 32d2e5d36c CreateTypeParameterFromUsage: do not suggest fix in new expr IDEA-194610 2018-06-28 15:15:15 +07:00
Anna Kozlova 1c8d7cc8b0 disable 'fix all' in file for unused symbols inspection (IDEA-194627) 2018-06-28 11:12:17 +03:00
Tagir Valeev bd4a3477f5 StreamApiMigration: register comments from post-loop operations like sorting 2018-06-27 09:29:38 +07:00