Commit Graph

5076 Commits

Author SHA1 Message Date
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
Dmitry.Krasilschikov 4cd44ae82e IDEA-207961 test groovy reference instead of ruby; test fixed 2019-03-04 18:05:35 +02:00
Dmitry.Krasilschikov c4d06c8ec1 IDEA-207961 Copy TBX reference URL: support multiple paths, testes provided 2019-03-04 15:10:08 +02: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
Tagir Valeev d857e94a9f A test for IDEA-207951 (IDEA-CR-44292) 2019-03-01 13:26:39 +07:00
Tagir Valeev 483f9458b3 DeclarationJoinLinesHandler: preserve declaration type element for implicit type
Fixes EA-138246 - IOE: PsiElementFactoryImpl.createVariableDeclarationStatement
2019-02-28 10:27:35 +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
peter 91599750b8 fix Java keyword completion inside casts in enum constant initializers 2019-02-20 14:55:47 +01: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 dafe2e8918 StandardInstructionVisitor: kill instruction state on ArrayIndexOutOfBounds 2019-02-20 16:36:39 +07: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 b6f6bae31a invert if: ensure outer if becomes braces when nested if has no else brunch (IDEA-206882) 2019-02-07 16:49:03 +01:00
Pavel Dolgov 729f8b1328 Java: Support more variants with switch expressions in '.switch' template (IDEA-204010) 2019-02-07 18:20:56 +03: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
Pavel Dolgov ddfaf087ee Java: Support switch expressions in '.switch' template (IDEA-204010) 2019-02-06 15:43:29 +03:00
Tagir Valeev 1930c6736b CreateSwitchIntention: disable in assignment (while valid, rarely makes sense -- see IDEA-206725) 2019-02-06 11:52:59 +07: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
peter 0112b8aaa8 IDEA-206386 Stream.toUnmodifiableList autocompletion (and mockJDK-11 to test it) 2019-02-01 11:42:45 +01: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
Tagir Valeev 35990562bf IDEA-195293 Strange behavior when join lines with "builder.append('...')" 2019-02-01 15:45:26 +07:00
Artemiy Sartakov 4b5b6574aa IntegerMultiplicationImplicitCastToLong: added quick-fix (IDEA-206024) 2019-02-01 15:12:50 +07:00
Tagir Valeev 1bc7264b58 IDEA-196178 Join Lines on selected text also joins not selected text 2019-02-01 15:10:24 +07:00
Tagir Valeev 9e2e512f6b IDEA-192201 Bad code is green: inner class object creation 2019-02-01 12:29:10 +07:00
Anna.Kozlova f92844207a unused imports: don't warn if resolve produces no results but multi resolve does (IDEA-206347) 2019-01-31 18:22:13 +01:00
Anna.Kozlova f2b9476d0f disable create method from usage/change signature based on void argument (IDEA-205710) 2019-01-31 18:22:13 +01:00
Tagir Valeev 8da8dca8e0 IDEA-200455 Suggest to replace (a, b) -> a + b lambdas with Integer::sum, Long::sum, Double::sum 2019-01-31 14:21:13 +07:00
Anna.Kozlova c6e5f6788f overload resolution: ignore explicit type arguments when choosing most specific method for java 8+ 2019-01-30 18:38:47 +01:00
Pavel Dolgov 1bb82a7f5c Java: Intention to split switch branch with multiple values into separate branches (IDEA-203895) 2019-01-30 15:52:26 +03:00