Commit Graph

589 Commits

Author SHA1 Message Date
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
peter b3c40ee773 dfa: highlight just method reference name on possible NPE warnings (IDEA-149904) 2016-01-20 16:47:53 +01:00
Anna Kozlova f7bbd49f75 (on-the-fly) static import of constant 2016-01-13 16:54:58 +01:00
Anna Kozlova 1b3ce12a93 anonym -> lambda: accept refs to initialized final fields in classes inside constructors (IDEA-150322) 2016-01-13 16:54:58 +01:00
Anna Kozlova aad1c273e1 trivial functional expressions usage: inline args if provided (IDEA-131090) 2016-01-12 16:23:25 +01:00
Anna Kozlova e39f57a94e trivial functional expressions usage: replace anonymous 2016-01-12 16:23:25 +01:00
Anna Kozlova fee6bc1ba5 trivial functional expressions usage (IDEA-131090) 2016-01-12 13:45:16 +01:00
Anna Kozlova a2c90af6b3 trivial method reference inspection (IDEA-123298) 2016-01-11 20:19:54 +01:00
Anna Kozlova 01fc1dc40f lambda -> method ref: make cast type denotable (IDEA-134217) 2016-01-04 19:25:03 +01:00
Anna Kozlova 82773c69e0 redundant explicit types: available inside nested calls for java 8 (IDEA-134160) 2016-01-04 19:25:03 +01:00
Anna Kozlova ec2128de5a disable add type cast fix for non-denotable types (IDEA-149787) 2015-12-29 16:46:58 +01:00
Anna Kozlova e4ef475f9e new inference: don't process expressions after param.length for non-varargs (IDEA-149489) 2015-12-28 14:57:27 +01:00
Anna Kozlova dd38082794 least upper bound: pull unbounded wildcard up so types Number & Comparable<? extends Number & Comparable<?>> are produced instead of Number & Comparable<? extends Comparable<?>>
inferred type in bounds check cleanup: accept that inference result is not within its bounds and give the inference the second chance
2015-12-09 11:25:11 +01:00
Anna Kozlova a15905ae13 conditional expression type: check poly expression first (IDEA-148965) 2015-12-08 09:37:18 +01:00
Dmitry Avdeev ad9d9397fc DefaultAnnotationParamInspection 2015-12-03 11:12:28 +03:00
Anna Kozlova f5c6318814 generate wildcard type to ensure valid assignment (IDEA-148644) 2015-12-02 17:56:08 +01:00
Bas Leijdekkers 9d49239ff4 EA-76495 (IOE: PsiJavaParserFacadeImpl.createStatementFromText) 2015-12-01 19:11:39 +01:00
Anna Kozlova b611e2abee delegate default param values: don't mark static method in the interface with default modifier (IDEA-148489) 2015-11-26 19:23:09 +01:00
Roman Shevchenko eb5890cc8f [java] nullability annotation copying logic restored; test added (IDEA-CR-6810) 2015-11-24 11:42:14 +01:00
Anna Kozlova 64ff5ff961 push condition in call: fix different qualifiers (IDEA-147901) 2015-11-13 16:07:17 +01:00
Dmitry Batkovich 6afbed569a quick fix which adds exception from field initializer to constructor signature (IDEA-142284) 2015-11-13 15:59:53 +03:00
Anna Kozlova 823cd15864 static method import: collect all overloaded methods to filter them after finish of stub processing (IDEA-147745) 2015-11-11 17:35:32 +01:00
Dmitry Batkovich e8805cb2cc "initialize variable" & "initialize in constructor" suggests default constructors (with inheritor's if collection) (IDEA-145431) 2015-11-06 15:56:50 +03:00
Anna Kozlova 94e3eb2c04 compound filter from filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova ae4b083aec split compound filter into filters chain (IDEA-146147) 2015-11-04 15:52:15 +01:00
Anna Kozlova d7f768366b fix testdata 2015-11-02 15:29:42 +01:00
Anna Kozlova 41916174b6 return Object if denotable type is needed for functional expression (e.g. lambda expression) type
EA-75552 - IOE: PsiElementFactoryImpl.createField
2015-11-02 15:29:42 +01:00
Anna Kozlova 62cc281a3d disable lambda -> methref for qualified new expressions (IDEA-147054) 2015-10-29 19:40:11 +01:00
Anna Kozlova 543e5f3cdf remove this qualifier on anonym -> method ref fix 2015-10-28 19:45:32 +01:00