Commit Graph

3758 Commits

Author SHA1 Message Date
Dmitry Avdeev
f9664fc455 IDEA-211555 Freeze on completion in XML file
do not process xincludes in ExtensionDomExtender

GitOrigin-RevId: d631dcd52d5bf500b61960473e16237008ad02a3
2019-05-07 17:02:41 +03:00
Anna Kozlova
0374b5f49c conditional expression: use target type for overload cases when assignable
GitOrigin-RevId: 2be5da156f1726f8536e6fc6447ae847629b0001
2019-05-06 11:04:24 +03:00
Anna Kozlova
e26bb55130 overload resolution: encapsulate overload guard checks + eliminate additional applicability predicate
GitOrigin-RevId: 41c411466ef8def32fb15535dc639a7f7dc29285
2019-05-06 11:03:23 +03:00
Aleksey Pivovarov
322db66a12 Recover after problematic merge
This commit reverts 65a557bb38f6ac03afa9aabaf02cb8d99fc68a91
                    3f5cfd958d9b6b54393c15983ac94f519c37fe61

GitOrigin-RevId: 8fb8ccbb17d0e217a83f265c185a943b0f5a7ed6
2019-05-03 01:52:21 +03:00
Nicolay Mitropolsky
9b850726ee [uast-groovy] UInjectionHost support
GitOrigin-RevId: 49ec454d1831796fa63b77fdc965f61985bf877e
2019-05-03 01:47:46 +03:00
Vladimir Plyashkun
c33e69a545 CPP-16098 - Lags during inplace rename typing
- reverted some of the changes

GitOrigin-RevId: c7c07b80a76c29794ef31e0e916e62f7f302917a
2019-05-03 01:47:14 +03:00
Leonid Bushuev
34be4bbf7d Apply the change from Develar: cleanup - specify UTF_8 charset explicitly
GitOrigin-RevId: 3f5cfd958d9b6b54393c15983ac94f519c37fe61
2019-05-03 01:46:11 +03:00
Vladimir Plyashkun
61a3e18b78 Merge branch 'master' into vplyashkun/inplace_rename_lags
GitOrigin-RevId: aaecc2a32e4e42de827efb45b8df733874a722e4
2019-05-03 01:41:29 +03:00
Leonid Bushuev
970dc0fe32 Remove unnecessary downcasting
GitOrigin-RevId: b91110977db6e5b08d9f4aaffa8496d305d698e2
2019-05-03 01:40:23 +03:00
Vladimir Plyashkun
2d9369d983 CPP-16098 - Lags during inplace rename typing
- changed behaviour in safe way by introducing new method to check that particular expression does not depend
  on committed PSI

GitOrigin-RevId: f5ec732613cdafdcef8a1d48eb8d04135c634047
2019-05-03 01:39:50 +03:00
Leonid Bushuev
338ad6db56 SQL code style per dialect: UI: fix indent editor
GitOrigin-RevId: 3cb00f5c500523717c42f404b2f38fd1822d6db0
2019-05-03 01:39:18 +03:00
Vladimir Plyashkun
d990d75dba Merge branch 'master' into vplyashkun/inplace_rename_lags
GitOrigin-RevId: 5c7f8c478e7328df1646879ede977efd7465adf8
2019-05-03 01:38:45 +03:00
Vladimir Plyashkun
e3ca319824 CPP-16098 - Lags during inplace rename typing
- call `commitDocument` explicitly in cases when `calculateQuickResult` can redirect it's calculation to heavy `calculateResult`

GitOrigin-RevId: 41f0c47c57f4528d7d7a25208024ec28bb8c2e12
2019-05-03 01:38:12 +03:00
Leonid Bushuev
dc1a52762e SQL code style per dialect: UI
GitOrigin-RevId: 9b1b3e745d4c8acef5a4a1018714e004e5423519
2019-05-03 01:37:38 +03:00
Vladimir Plyashkun
d712ac9901 CPP-16098 - Lags during inplace rename typing
- removed `commitDocument` call when `isQuick` argument is passed
- pass `element` or `null` to `equalsToText` call (since there is not real need to take it for text comparison)

GitOrigin-RevId: 27c5e1a2f484fc56d41dfd210832ae94c9a9b7ab
2019-05-03 01:37:04 +03:00
Leonid Bushuev
9f35a30458 SQL code style per dialect: UI
GitOrigin-RevId: 72cca4d6a23a5e2aa2089c03932ab2e9d08bfa48
2019-05-03 01:36:24 +03:00
Tagir Valeev
61ac76cf48 IDEA-211702 Incorrect inspection "Can be replaced with single expression in functional style" when types differ
GitOrigin-RevId: 4006edb212486fa38b31b26ecbed881e6079f6e6
2019-04-29 13:28:39 +03:00
Anna Kozlova
7a03a2be5c method references overload resolution: skip static methods of interfaces called on inheritor (IDEA-209920)
GitOrigin-RevId: 9e7889def32913679fa867f9dd2a80f8d187964e
2019-04-28 19:25:43 +03:00
Anna Kozlova
d3928de54b change method return type: avoid changes in hierarchy when assignable (IDEA-209931)
GitOrigin-RevId: 43166bdd806d2a0b6ed2e72e6630c9cf53fba7b4
2019-04-28 19:25:11 +03:00
Tagir Valeev
3368f8e2d5 ParenthesesUtils#removeParensFromPolyadicExpression: check operand validity
As processing the previous operands may completely rewrite the whole polyadic expression, we have to stop if this happens
No need to find the replacement and process the tail: it's already processed in removeParensFromParenthesizedExpression
Fixes EA-141996 - PIEAE: CompositePsiElement.getContainingFile

GitOrigin-RevId: 64162346a612e2d95eec426419bef51d6c5d46a3
2019-04-28 17:44:13 +03:00
peter
28a5a5765f IDEA-211449 IDEA is unable to find lambda implementations when invoked on library class source
GitOrigin-RevId: 8fd904e0dae62c5b15f9b85fe2086860bf89b4d0
2019-04-28 17:13:28 +03:00
Anna Kozlova
38f5055d00 replace type with var: allow anonymous type replacement (IDEA-210534)
though interface to implementation replacement may lead to implementation type propagation, anonymous type can't be propagated so it's safe to be used as var

GitOrigin-RevId: cae306614efcb92551f2aa907f8d66e1bd2db930
2019-04-28 16:02:06 +03:00
Anna Kozlova
85fa5fa5d5 dummy constructor resolution: don't insert access object (IDEA-211203)
GitOrigin-RevId: 8b9184a572a263ec43e0e9c1a7d4af3b9151eb75
2019-04-28 14:58:28 +03:00
Anna Kozlova
00fbf3d133 lambda potential compatibility: don't treat array creation as void compatible
array creation can't be used as expression statement thus corresponding lambda body is value compatible but not void compatible

GitOrigin-RevId: b0ddccad13c8699de64c4ce3e584214fe08a2353
2019-04-28 14:57:53 +03:00
Tagir Valeev
9af3284048 StreamToLoopInspection: simplify getEffectiveQualifier usage; support unqualified Iterable.forEach, Map.forEach
Review ID: IDEA-CR-46452

GitOrigin-RevId: 7622f0f1274d9f23bfaef88096b3eedd2b4d18a6
2019-04-28 14:53:13 +03:00
Tagir Valeev
723c055455 FinishMarker: use the first movable value when mayNeedMarker is true (may generate shorter code) 2019-04-19 15:02:32 +07:00
Tagir Valeev
179a83f60e TrivialFunctionalExpressionUsageInspection: support parentheses for anonymous class 2019-04-19 11:55:23 +07:00
Tagir Valeev
e13567df50 Better comment handling in ternary->if conversion & stream-to-loop 2019-04-19 11:45:55 +07:00
Tagir Valeev
9e1982a819 ExpressionUtils#getQualifierOrThis -> getEffectiveQualifier, nullable now (cannot construct this expression for outer anonymous class)
Fixes EA-140652 - assert: JavaParserUtil.parseFragment
2019-04-18 13:04:43 +07:00
Pavel Dolgov
2f8ed67c62 Java: Recognize @systemProperty tag in Javadoc (IDEA-210273) 2019-04-17 14:52:11 +03:00
Alexey Kudravtsev
b772c5559c move a couple tests with right dependencies to community 2019-04-15 16:54:41 +03:00
Tagir Valeev
e0d1fab43d ConvertToSingleReturn: default return value tuned; define it always before actual conversion 2019-04-12 17:19:54 +03:00
Tagir Valeev
fbd8237916 Switch label: do not resolve unqualified enum constants referenced on the right side of arrow
Fixes IDEA-210771 Error message should be exposed for the new 'case' label in Java 12 in case of wrong constant usage
2019-04-12 10:56:13 +07:00
Tagir Valeev
cb2e86701d IterableUsedAsVararg: fixes according to review IDEA-CR-45949 2019-04-10 14:49:18 +07:00
Roman.Ivanov
46ae614bd3 AddExceptionToExistingCatchClause: remove unrelated to java 6 test 2019-04-09 14:12:34 +07:00
Roman.Ivanov
970afc84ff JoiningMigration: remove unnecessary side effect check for prefix: IDEA-207456 2019-04-09 12:34:13 +07:00
Tagir Valeev
4598cf2d46 IDEA-209951 Inspection to detect when collection is accidentally passed as vararg and will be wrapped into one-element array 2019-04-04 19:21:52 +07:00
Roman.Ivanov
0f8d589a14 Remove GeneralizeCatchFix as more general alternative exists 2019-04-03 12:37:11 +07:00
Roman.Ivanov
6d37214f4d AddExceptionToExistingCatch: fix non replacement intention text 2019-04-03 12:24:01 +07:00
Roman.Ivanov
7f160662a5 AddExceptionToExistingCatch: supply more concrete intention text 2019-04-03 11:59:52 +07:00
Bas Leijdekkers
fc1cc50ff9 IG: merge two inspections and enable at INFORMATION level (IDEA-30715)
merging "Multiple variables in one declaration" and "Multiple typed variables in one declaration" inspections
2019-04-02 19:55:05 +02:00
Roman.Ivanov
ed9d67604e AddExceptionToExistingCatch: support language levels < 7 2019-04-02 17:30:17 +07:00
Roman.Ivanov
5c55f93cd1 AddExceptionToExistingCatch: do not suggest catches if its successors are assignable to exception type: IDEA-208457 2019-04-02 16:10:45 +07:00
Tagir Valeev
65cff5c8b2 GenericsUtil: LUB(Object[], int[]) = Object & Cloneable & Serializable type (not Object[])
Part of IDEA-209568
2019-03-26 11:18:21 +07:00
Tagir Valeev
e85e0ebdfb LambdaCanBeMethodReferenceInspection: fix EA-140341 CCE; cleanup 2019-03-26 10:42:03 +07:00
Tagir Valeev
8fa34c7dbe LambdaCanBeMethodReferenceInspection: allow parenthesized qualifier 2019-03-25 10:57:30 +07:00
Tagir Valeev
1327600ef4 IDEA-205881 Remove redundant cast leads to incompilable code 2019-03-22 10:44:54 +07:00
Tagir Valeev
a26ebd6de8 Convert to single return: fix for incorrect code 2019-03-20 10:47:52 +07:00
Tagir Valeev
38f4026184 IDEA-209056 Switch, try-catch, synchronized support; avoid conflicting var names; fix reads of uninitialized vars 2019-03-19 17:35:03 +07:00
Tagir Valeev
5b3d311505 IDEA-209056 Action to transform method with multiple returns into the method with single exit point
First implementation
2019-03-19 15:02:38 +07:00