Commit Graph
3723 Commits
Author SHA1 Message Date
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
Pavel Dolgov 79022c29ce Java: Intention that wraps list/set/map with Collections.unmodifiable - don't suggest on the left-hand side of assignment (IDEA-208885) 2019-03-15 13:16:09 +03:00
Tagir Valeev 62bbfeaa3c JavaFunctionalExpressionIndex: support array initializers 2019-03-15 10:45:43 +07:00
Bas Leijdekkers 5f578b9250 Java: fix "Move into anonymous object" quick fix problems (EA-139632) 2019-03-14 17:59:35 +01:00
Tagir Valeev 6bef676307 CollectMigration: do not wrap nullable values with toUnmodifiableList/Set (IDEA-207976) 2019-03-14 11:10:38 +07:00
Tagir Valeev 77b6a04c45 IDEA-207874 Inspection to replace Map.keySet().contains(K) with Map.containsKey(K) 2019-03-12 13:54:25 +07:00
Tagir Valeev 7906dd0dcd RedundantCastUtil: fix isCastRedundant (avoid checking another cast) 2019-03-11 17:53:32 +07:00
Bas Leijdekkers 27c17db32b IG: make ExpressionUtils.resolveLocalVariable() skip parentheses 2019-03-08 11:32:41 +01:00
Tagir Valeev 43b636f63f UiInterceptors: ability to intercept UI components in tests and emulate user action
Currently only popup chooser is supported
A usage example added for AddExceptionToExistingCatchTest
2019-03-06 13:37:43 +07:00
Tagir Valeev eefd518316 Final field referenced from anonymous class argument list: continue search instead of return
Fixed: IDEA-208030 False positive Variable might not have been initialized
2019-03-01 19:02:48 +07:00
Pavel Dolgov 974a946128 Java: No deprecation warning when declaration and usage are within the same top-level class, JLS 9.6.4.6 (IDEA-131480) 2019-02-26 17:09:11 +03:00
Pavel Dolgov 564bb424de Java: Intention that wraps list/set/map with Collections.unmodifiable - use results of DFA, test fixed (IDEA-93154) 2019-02-25 17:55:54 +03:00
Bas Leijdekkers 767bf19c4a don't suggest to replace annotated type elements with diamond (IDEA-207586) 2019-02-23 19:14:13 +01:00
Tagir Valeev 8b03dc8d47 IDEA-207296 Good code red: exception never thrown in the corresponding try block 2019-02-22 17:07:27 +07:00
Pavel Dolgov 8ce43b883c Java: Intention that wraps list/set/map with Collections.unmodifiable - handle ternary 'if' (IDEA-93154) 2019-02-21 18:03:24 +03:00
Pavel Dolgov 96b9ab4f80 Java: Intention that wraps list/set/map with Collections.unmodifiable - handle the caret at the end of the expression (IDEA-93154) 2019-02-21 18:03:24 +03:00
Pavel Dolgov 0267b104b3 Java: Intention that wraps list/set/map with Collections.unmodifiable - check the required type (IDEA-93154) 2019-02-21 18:03:24 +03:00
Tagir Valeev 1f132fb51e ConstantConditionalExpressionInspection: respect precedence when creating type-cast
Fixes EA-137355 - CCE: ConstantConditionalExpressionInspection$ConstantConditionalFix.doFix
Also fix removing parentheses inside RemoveRedundantCastUtil#removeCast
2019-02-21 13:14:16 +07:00
Tagir Valeev e72a28c3e6 Detect recursive type parameter definition when checking for assignability
Fixes EA-137370 - SOE: TypeConversionUtil.isNarrowingReferenceConversionAllowed
2019-02-21 12:58:25 +07:00
Pavel Dolgov 63092d9c2e Java: Intention that wraps list/set/map with Collections.unmodifiableList/Set/Map (IDEA-93154) 2019-02-20 18:00:15 +03:00
Pavel Dolgov ec58711cf3 Java: Quick fix for missing 'return' in lambda body (IDEA-169551) 2019-02-20 13:27:57 +03:00
Tagir Valeev 5c0748b0bc StreamApiMigrationInspection: BufferedReaderLines: support parentheses around readLine in while scenario 2019-02-18 12:37:12 +07:00
Anna.Kozlova bb01072eb6 fix code to compile under java 11 as well 2019-02-11 18:43:21 +01:00
Tagir Valeev 7a897157f1 MergeFilterChainAction: support parentheses 2019-02-08 15:24:53 +07:00
Anna.Kozlova a98a18ce8a calc expected type on the left of assignment based on standalone expression type from the right side (IDEA-199273) 2019-02-07 15:59:00 +01:00
Anna.Kozlova 596fdda3e7 java resolve: prefer package for single-type-import only with default package exception (IDEA-206295) 2019-02-07 11:44:54 +01:00
Artemiy Sartakov 043c2d563e Field can be local: added support for nested and local classes (IDEA-206647) 2019-02-07 17:27:00 +07:00
Tagir Valeev 5de8f58f34 Replace with trivial lambda default fixed after 2cfd1ece23 2019-02-07 10:58:44 +07:00
Pavel Dolgov d9412eba69 Java: Fixed typos in test data file names (IDEA-203895) 2019-02-06 18:40:08 +03:00
Bas Leijdekkers 4e7a841173 qualify field access in initializer when shadowed by new declaration (IDEA-173780) 2019-02-06 16:09:30 +01:00
Anna.Kozlova dac182b6d9 var -> explicit type: fix for foreach parameter (IDEA-206640) 2019-02-05 16:36:29 +01:00
Artemiy Sartakov 1b87c1a508 ConvertToLocalInspection: changed quick-fix to explicitly show type of code block where field is used (IDEA-CR-42222) 2019-02-05 13:26:10 +07:00
Anna.Kozlova 1ace9ab2c3 lambda -> method ref: reuse comment tracker (IDEA-189934) 2019-02-04 15:21:43 +01:00
Pavel Dolgov cf34272833 Java: More tests for intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-02-04 12:33:41 +03:00
Tagir Valeev 15e0df11f9 IDEA-206497 Replace with stream: support intermediate map operations in counting loops 2019-02-04 14:20:39 +07:00
Pavel Dolgov 4c260c88bc Java: Improvements in intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-02-01 13:11:28 +03:00