Commit Graph
4744 Commits
Author SHA1 Message Date
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 fe6ebf0a01 ConvertCompareToToEqualsIntention: support parentheses 2018-07-06 13:58:56 +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 cf64d92692 AddJavadocIntention: disable at field initializers
Add JavaDoc was available at initializer in some rare cases, e.g. "String foo = b<caret>ar;" (initializer is a simple reference), which was inconsistent and confusing (will the action add JavaDoc to "foo" or to "bar"?
2018-07-06 13:58:47 +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
Tagir Valeev e9fcd24559 UnnecessaryToStringCallInspection: preserve comments on fix (IDEA-CR-29000) 2018-07-03 10:13:16 +07:00
Dmitry Jemerov 8d906207d4 Allow passing additional prefix to CompletionServiceImpl.handleCompletionItemSelected() 2018-07-02 19:19:56 +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
Anna.Kozlova f739ddf3d4 inference: ensure all type parameters are processed on upUp bound incorporation (IDEA-194839) 2018-07-02 17:15:28 +02:00
peter d98f2c7409 java completion: suggest only denotable method return types (IDEA-194462) 2018-07-02 17:09:29 +02:00
peter 8d183dee3a don't complete Arrays.asList when Set is expected (IDEA-194812) 2018-07-02 17:09:29 +02:00
peter 340e3aab58 disprefer unlikely interfaces in basic completion after new (IDEA-193609)
just like in smart one
2018-07-02 14:39:31 +02: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
Rustam Vishnyakov aba4573d3d IDEA-180882 Code formatting doesn't remove invalid/empty Javadoc tags 2018-06-28 22:05:58 +03: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 4198e09715 testdata for IDEA-139214 2018-06-28 11:12:17 +03:00
Anna Kozlova 1c8d7cc8b0 disable 'fix all' in file for unused symbols inspection (IDEA-194627) 2018-06-28 11:12:17 +03:00
Alexander Zolotov 2f149fa165 Postfix templates: added serr and souf templates 2018-06-27 14:49:24 +03:00
Alexander Zolotov 6c66dbbdd0 Postfix templates: added soutv postfix template (IDEA-194685) 2018-06-27 14:49:24 +03:00
Tagir Valeev bd4a3477f5 StreamApiMigration: register comments from post-loop operations like sorting 2018-06-27 09:29:38 +07:00
Anna Kozlova 2e22f09d37 allow to create inner class on qualifier (IDEA-129663) 2018-06-26 18:42:24 +03:00
Tagir Valeev 49a1e9e78a afterCommentInBlock: space restored (IDEA-CR-34134) 2018-06-26 15:46:35 +07:00
Tagir Valeev d6225c87b7 TypeConstraint#union: fixed possible inconvertibility with inconsistent hierarchy
Fixes EA-123372 - NPE: AbstractStreamEx.lambda$foldLeft$
2018-06-26 15:38:48 +07:00
Anna Kozlova 002134fe5b disable constructor matching super when appropriate candidate already present
IDEA-113427
2018-06-26 09:18:42 +03:00
Anna Kozlova e2e3359a09 keep comments on split declaration inside for loop 2018-06-26 09:18:41 +03:00
Anna Kozlova 8a3e53d414 testdata for IDEA-84211 2018-06-26 09:18:41 +03:00
Tagir Valeev 1a38128af4 StreamToLoop: do not trim trailing whitespace for block lambdas
Fixes trailing line comment handling
2018-06-26 12:36:58 +07:00
Roman.Ivanov e63c06d315 SortContentAction: fix \n placement after eol comment : IDEA-194501 2018-06-26 12:04:00 +07:00