Commit Graph

617 Commits

Author SHA1 Message Date
Anna.Kozlova
f52458abdf restrict anonym -> lambda: reject if return type would be changed (IDEA-154805) 2016-04-29 14:41:28 +02:00
Anna.Kozlova
567fc9ae88 fix testdata 2016-04-29 14:41:28 +02:00
Anna.Kozlova
ce9556a909 override default methods in interfaces with default methods (IDEA-155381) 2016-04-29 14:41:28 +02:00
Anna.Kozlova
b1645e3ae5 reuse utility method; ensure unknown functional type reduced to Object before create new psi
EA-75452 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2016-04-22 17:02:00 +02:00
Anna.Kozlova
1a2b94105e EA-78630 - CCE: TrivialFunctionalExpressionUsageInspection$ReplaceWithLambdaBodyFix.replaceWithLambdaBody 2016-04-22 17:02:00 +02:00
Anna.Kozlova
5d6351b1ec diamonds: don't accept inferred types when error appeared during inference (IDEA-154619) 2016-04-21 18:39:23 +02:00
Anna.Kozlova
399e59e8dd fix testdata 2016-04-21 14:33:04 +02:00
Anna.Kozlova
a12bdff8a1 explicit -> diamond: ignore invalid types (IDEA-155017) 2016-04-20 19:13:20 +02:00
Anna.Kozlova
22c8d0f9ce anonymous -> lambda: fix anonymous classes in enum constants 2016-04-20 17:49:29 +02:00
peter
a4aa1f2bd7 IDEA-152224 Unwrap if should check if there are conflicting variables 2016-04-19 14:00:30 +02:00
Anna.Kozlova
43fc40c4a5 anonym -> lambda, redundant cast, redundant type args: process top level overloads (IDEA-152766);
rearrange utils
2016-04-15 18:43:24 +02:00
Alexey Kudravtsev
bfcb00fff6 quick fix for MagicConstantInspection which suggests to replace 1 with Font.BOLD 2016-04-15 12:34:33 +03:00
Anna.Kozlova
f7137a044d anonymous -> lambda: deep unique names (IDEA-154751) 2016-04-14 20:59:13 +02:00
Anna.Kozlova
59daba3004 disable return void suggestion (IDEA-154467) 2016-04-11 12:48:53 +02:00
Anna.Kozlova
9cdb5a70af trivial method ref: check if qualifier is of assignable type (IDEA-154422) 2016-04-08 18:44:25 +02:00
Anna.Kozlova
572b7d8e7e disable create enum constant when not applicable (IDEA-154293) 2016-04-08 18:44:25 +02:00
Dmitry Batkovich
6f49be7fcc wrap with optional IDEA-122553 2016-03-25 13:50:03 +03:00
Bas Leijdekkers
af3365744c IDEA-38591 (Can't use "Create Local Var from instanceof" intention on multiple 'instanceof' with &&) 2016-03-24 15:36:14 +01:00
Anna.Kozlova
a3b5e864db convert field to local: reject when field is used from javadoc (IDEA-153332) 2016-03-23 17:20:32 +01:00
Anna.Kozlova
9e8666f159 bind params to fields: accept field assignments if not exactly the parameter reference was assigned (IDEA-120320) 2016-03-23 17:20:32 +01:00
Anna.Kozlova
f6faa42d85 anonym -> lambda: reject refs to the next static from static field initializer 2016-03-21 21:11:36 +01:00
Anna.Kozlova
6fc9953a82 show error if uninitialized field is referenced from lambda inside inner/anonymous class in another field initializer; disable anonymous -> lambda for such places 2016-03-21 21:11:36 +01:00
Anna.Kozlova
f14159a852 disable replace with collect for raw collection substitutors (IDEA-153325) 2016-03-21 14:14:26 +01:00
Anna.Kozlova
81a6342d17 anonymous -> method ref: collapse receiver method references to raw receiver (IDEA-153261) 2016-03-18 20:49:43 +01:00
Anna.Kozlova
6daac099e6 anonymous -> lambda: treat class initializers as fields when forward references are check (IDEA-153254) 2016-03-18 20:49:43 +01:00
Anna.Kozlova
ae59643c87 testdata for IDEA-151214 2016-03-18 15:50:22 +01:00
Anna.Kozlova
53d3aa770c inference: don't include constraints to resolve if input bounds have proper instantiation but depends on the output of another constraints (IDEA-153164) 2016-03-17 21:25:32 +01:00
Anna.Kozlova
15d6e64813 lambda -> method ref: compare denotable types (IDEA-153054) 2016-03-16 15:35:39 +01:00
Anna Kozlova
0c583feae6 show static import suggestion: ensure normal inference process for method candidate (IDEA-152985) 2016-03-15 19:09:04 +01:00
Anna Kozlova
a54e0ed47e copy to final: effectifely final is enough fot java 8 (IDEA-152934); change wording 2016-03-14 17:48:06 +01:00
Anna Kozlova
355ee67f27 generify fix for unchecked assignments (IDEA-152658) 2016-03-09 14:23:53 +01:00
Anna Kozlova
eb9b80c2d5 field can be local: restrict check for only super/this call (IDEA-152331) 2016-02-29 20:52:47 +01:00
Anna Kozlova
0e606219ba testdata for IDEA-152332 2016-02-29 20:52:47 +01:00
Anna Kozlova
3d1cb1b7e7 missed delegate in prioritized intentions added (IDEA-152103) 2016-02-26 21:13:09 +01:00
Anna Kozlova
6e9234b115 redundant casts: don't treat cast as redundant if functional expression get more specific type (IDEA-152093) 2016-02-24 21:05:13 +01:00
Anna Kozlova
c6d354b962 replace with collect: collapse lambda to method reference in filters (IDEA-151491) 2016-02-24 13:12:24 +01:00
Anna Kozlova
9332f88d1a anonymous -> lambda: skip fields with qualified refs to another fields of the same class (IDEA-151954) 2016-02-22 20:05:58 +01:00
Anna Kozlova
f09865ef1d convert to diamonds: raise a problem if containing method can't be resolved (IDEA-151540) 2016-02-22 15:59:38 +01:00
Anna Kozlova
f9d49fa1f4 convert to diamonds: take care of java 8 inference, check on non-physical elements (IDEA-151559) 2016-02-22 15:59:38 +01:00
Alexey Kudravtsev
86b6ee7f18 folowup to IDEA-149950: changed "package local" to JLS-conformant "package-private" 2016-02-18 13:53:04 +03:00
Anna Kozlova
abd1b44e85 redundant args: copy the file to avoid incompleted psi 2016-02-16 15:57:18 +01:00
Anna Kozlova
7a671c53f8 stream api: fix primitive boxing (IDEA-151494) 2016-02-15 15:49:06 +01:00
Anna Kozlova
b424316b32 disable static import suggestions for references resolved with incomplete flag = true (IDEA-151264) 2016-02-15 15:49:06 +01:00
Bas Leijdekkers
6e43997abd add quickfix for non-disjoint multi-catch 2016-02-12 21:30:28 +01:00
peter
97c4d325e2 IDEA-151356 Simplifying known true/false conditions should remove unnecessary parentheses 2016-02-10 12:39:19 +01:00
Anna Kozlova
b4d2e26d84 fix assertion with code block lambda 2016-02-09 20:09:10 +01:00
Anna Kozlova
bd2113b739 lambda -> method ref: avoid Object::getClass as the type depends on qualifier (IDEA-150967) 2016-02-01 16:53:20 +03:00
Anna Kozlova
62bdd90f58 anonym -> lambda: check inferred type in the same context (IDEA-150947) 2016-01-28 18:50:28 +03:00
Anna Kozlova
5d70440851 foreach -> collect: simplify to addAll on collections if no filter/mapper is present (IDEA-150515) 2016-01-22 14:29:01 +03:00
peter
55f0e703e7 update dfa intention test expectations after IDEA-149904 2016-01-21 20:22:23 +01:00