Commit Graph

4540 Commits

Author SHA1 Message Date
peter 02b032eca2 IDEA-189603 Multi-parameter completion overwrites code if there is no closing parenthesis 2018-04-11 08:52:22 +02:00
Roman.Ivanov 5e0d5a8c16 AddExceptionToExistingCatch: disable fix for local classes: IDEA-189828 2018-04-10 15:49:24 +07:00
Roman.Ivanov db891c3f24 SortContentAction: place \n correctly if comment inside node IDEA-189822 2018-04-10 15:13:08 +07:00
Anna.Kozlova aad9fe81c2 show error for type arguments on array creation (IDEA-189766) 2018-04-09 15:07:49 +02:00
Roman.Ivanov c7f0ee1fb9 add fix to create type parameter from usage: IDEA-189833 2018-04-09 18:18:03 +07:00
Anna.Kozlova f86e0a31ea disable exceptional fixes for local classes (IDEA-189596) 2018-04-09 11:38:11 +02:00
Tagir Valeev 86bb492eb2 SplitIfAction and ExtractIfConditionAction code unified
Fixes IDEA-152047 Better "Split into 2 if's" result for else-if cases
2018-04-09 12:34:01 +07:00
Tagir Valeev 83ebaa7f64 Extract common conjunct from if-else chain in ExtractIfConditionAction
Fixes IDEA-179499 New inspection: Should break out common conjunct from "if / else if"
2018-04-07 09:08:57 +03:00
Roman.Ivanov b973d42f1c AddExceptionToExistingCatchFix: hide fix in catch or finally IDEA-189654 2018-04-06 12:26:55 +07:00
Tagir Valeev 5fe4a9b691 GuessManagerImpl: box values on fast-path; disable DFA on primitive types at all
Fixes IDEA-189340 Does not show Number methods during auto completion
2018-04-05 11:46:42 +07:00
Anna.Kozlova 5ecee5486b unchecked exceptions: check captured wildcards (IDEA-189184) 2018-04-03 16:53:09 +02:00
Anna.Kozlova c8493f4064 remove redundant line break in generated code (IDEA-189268) 2018-04-03 16:53:09 +02:00
Tagir Valeev f566678742 TypeConstraint#withSupers: fixed SOE on circular hierarchy (IDEA-CR-31134) 2018-04-03 10:02:14 +07:00
Tagir Valeev ea96b276bb TypeConstraint: fix deep hierarchy union (IDEA-CR-31134) 2018-03-30 13:30:43 +07:00
Anna.Kozlova 04b2a7b199 enable split if with redundant parenthesis 2018-03-29 16:11:08 +02:00
Anna.Kozlova 34ef66e51c add exception to existing catch: ensure qNames are adjusted 2018-03-29 16:11:08 +02:00
Roman.Ivanov b938da3020 AddExceptionToExistingCatch: more concrete message, scroll and highlight 2018-03-29 11:24:55 +07:00
Roman.Ivanov 21ddec7d1f change AddExceptionToExistingCatch to be quickfix 2018-03-29 11:24:55 +07:00
Roman.Ivanov 5aa1899843 Create intention to add uncaught exception to existing catch clause 2018-03-29 11:24:55 +07:00
Tagir Valeev c7f7093a96 IDEA-86242 Code completion do not suggest members of known common supertype 2018-03-28 10:33:02 +07:00
Anna.Kozlova 287b88b975 fix getClass() type in non-physical context
IDEA-188897
2018-03-27 17:15:52 +02:00
Tagir Valeev 46f0bf7f3a ObjectEqualsNull removed (superseded with DataFlowInspection) 2018-03-27 16:16:50 +07:00
Tagir Valeev f61a13bfcd EqualityCheck extracted and used in various inspections, other fixes
EqualsCalledOnEnumValueFix replaced with EqualsToEqualityFix which does the same
2018-03-27 15:01:56 +07:00
Tagir Valeev 7c193ef32c IDEA-188880 Make interface method 'default' fix: suppress for methods overriding Object methods 2018-03-27 11:44:59 +07:00
Anna.Kozlova 65dc553bea disable redundant cast checks in var context (IDEA-188833) 2018-03-26 14:25:15 +02:00
Anna.Kozlova 971f8e8295 lvti: forbid var/explicit type mix
don't treat var as explicit type
2018-03-26 10:36:24 +02:00
Anna.Kozlova d14cfc4dad navigate from var in lambda parameter 2018-03-23 18:17:28 +01:00
Anna.Kozlova 232b29888a add type cast intention for poly expressions (IDEA-188731)
inference errors on poly expressions are not propagated to the expected type (variable declaration, return statement, etc) like for standalone expressions: dedicated intentions should be registered
2018-03-23 15:06:39 +01:00
Anna.Kozlova 520f488169 lvti: goto declaration on var (IDEA-188739) 2018-03-22 15:53:25 +01:00
Alexander Zolotov cc65205f71 Postfix templates: remove entire expression statement for topLevelExpression-like templates only (IDEA-188667) 2018-03-22 17:43:52 +03:00
Dennis Ushakov f03606da47 fix vertical alignment for section content 2018-03-22 15:42:43 +03:00
Anna.Kozlova 3ae37a2925 disable cast suggestion for incompatible return type (IDEA-186479) 2018-03-22 10:41:42 +01:00
Anna.Kozlova 924e032bbf lvti: reject initializing var with void (IDEA-188623) 2018-03-20 19:58:02 +01:00
Anna.Kozlova ad23846b03 javadoc: generate plain links to avoid monospaced fonts in annotations section 2018-03-20 17:00:29 +01:00
Anna.Kozlova 07060b5fb3 fix optimize imports on the fly settings path 2018-03-20 17:00:29 +01:00
Anna.Kozlova 686c13fd01 inference: fix index for non-proper captured wildcard bounds (IDEA-188487) 2018-03-19 17:48:41 +01:00
Roman.Ivanov 4b0eec673a SortContentAction: support annotation array sorting 2018-03-19 12:58:12 +07:00
Roman.Ivanov 61a1b2eba6 SortContentAction: support enum sorting 2018-03-19 12:58:11 +07:00
Roman.Ivanov 4e34325187 SortContentAction: preserve comments in corner case 2018-03-19 12:58:11 +07:00
Dmitry Avdeev ff7343e295 OrderEntryFix: filter suggestions by qualified name 2018-03-16 17:40:59 +03:00
Anna.Kozlova 6880a7c7a7 error preferences according to javac (IDEA-180509) 2018-03-15 11:18:58 +01:00
Anna.Kozlova ae17453dcc testdata for IDEA-130118 2018-03-15 11:18:58 +01:00
Tagir Valeev 5a4f85ff35 CommentTracker#makeRangeUnchanged; more comment fixes for InvertIfCondition 2018-03-15 12:38:58 +07:00
Anna.Kozlova 92d5484a0b testdata for IDEA-175759 2018-03-14 17:39:04 +01:00
Anna.Kozlova e75b0faed2 inference: ensure erasure flag is pushed to the container expression
IDEA-185316
2018-03-14 17:39:04 +01:00
Anna.Kozlova 6a9bc6782d ensure class added to the throws list is visible outside of method
IDEA-187595
2018-03-14 17:39:04 +01:00
Anna.Kozlova 4b9f5eee44 remap types according to the current place (IDEA-187378) 2018-03-14 11:50:00 +01:00
Anna.Kozlova d2bfe3d14b ensure name when retrieving constructors from a class (IDEA-188068) 2018-03-13 10:35:45 +01:00
Tagir Valeev 2e6232e029 StreamApiMigration tests reorganized 2018-03-13 11:21:23 +07:00
Tagir Valeev b2d5f75a92 StreamApiMigration: support Java10 toUnmodifiableList/Set (part of IDEA-187213) 2018-03-13 11:21:22 +07:00