Commit Graph
2345 Commits
Author SHA1 Message Date
Anna Kozlova e90b046aa4 forbid anonym -> lambda/meth ref if method is synchronized (IDEA-133947) 2014-12-05 21:06:09 +01:00
Andrey Starovoyt 315f1b9977 reduce scope of try postfix template (2) after review IDEA-132878 2014-12-05 14:42:09 +03:00
Andrey Starovoyt 0b767366cb postfix templates incorrect expand IDEA-133867 2014-12-04 21:20:26 +03:00
Bas Leijdekkers f972926905 fix expected thrown types for lambda expressions 2014-12-03 15:30:48 +01:00
Anna Kozlova 3ea5b44100 resolve package/class if field is not accessible in fqn method call (IDEA-133812) 2014-12-03 12:53:07 +01:00
Anna Kozlova 2fa3bdf88f testdata fixed (too wide fonts on linux splitted components into multi rows!) 2014-12-02 19:34:41 +01:00
Andrey Starovoyt f1fb09084b postfix template: reduce scope of 'try' IDEA-132878 2014-12-02 18:06:44 +03:00
Anna Kozlova bcf0f87453 raw diamond substitution: infer Object for jdk < 1.8 (IDEA-133733) 2014-12-02 12:49:55 +01:00
Yaroslav Lepenkin 9f82306ea5 Added possibility not to add FQN in javadocs if class was imported (IDEA-121121 ) [CR-IC-6907]
Now three options is available: use FQN always, never, or when not imported. Last is used by default.
Converted and moved boolean legacy setting from CommonCodeStyle settings into JavaCodeStyleSettings.
2014-12-02 12:14:01 +02:00
Anna Kozlova 08a7e5b8bf show params info: ignore varargs conflicts, current index calculation 2014-12-01 18:00:33 +01:00
Andrey Starovoyt af6e705092 disable autocompletion for live/postfix templates 2014-12-01 16:48:30 +03:00
Alexey Kudravtsev 6ce8da783c fix RefCountHolder to avoid "all yellow" syndrome, highlighting cleanup 2014-11-28 14:26:06 +03:00
Anna Kozlova 145f701bc1 new overload resolution: integrate isPotentiallyCompatible in isApplicable checks 2014-11-26 17:42:30 +01:00
Anna Kozlova 68cc2ec0a2 method refs: mark as potentially incompatible expression based reference of non-static method with incorrect number of parameters; contradict spec (15.12.2.1) 2014-11-26 17:39:25 +01:00
Anna Kozlova 3f0ce40440 testdata for IDEA-127124 2014-11-25 19:23:29 +01:00
Anna Kozlova 152df440c6 method call type: erasure should not be applied if method doesn't have type params; < 1.8 (IDEA-132810) 2014-11-25 17:13:03 +01:00
Anna Kozlova 897609bd68 new inference: avoid resolveGenericMethod on new expressions as diamond types are expanded and cached on class reference (IDEA-133297) 2014-11-25 13:36:23 +01:00
Anna Kozlova efc2dc0c59 lambda -> methref: respect laziness (IDEA-133372) 2014-11-24 12:09:15 +01:00
Dmitry Batkovich 38353bfac4 IDEA-133322 Add an intention to convert compareTo(x)==0 to equals 2014-11-24 13:21:18 +03:00
Anna Kozlova 6d73d68b6a replace unused parameter fix with safe delete in onTheFly mode: deep parameter delete is enabled this way 2014-11-20 11:49:14 +01:00
Anna Kozlova fa29801a8a method refs: varargs methods should be checked for parameter numbers (IDEA-133173) 2014-11-20 11:49:09 +01:00
Anna Kozlova b239f91e8e replace with setter: skip non-primitive assignment (IDEA-133102) 2014-11-19 14:01:19 +01:00
Anna Kozlova 498e067158 do not add exceptions to containing methods when element is selected inside lambda 2014-11-18 18:36:39 +01:00
Anna Kozlova f52ceb369b do not search for lambda parameter javadoc 2014-11-18 18:36:38 +01:00
Anna Kozlova 2bd9c19a63 @SafeVarargs for java 9 (IDEA-132278) 2014-11-18 18:36:28 +01:00
Anna Kozlova ba0cba456e invert if: stop at lambda level (IDEA-133023) 2014-11-17 20:14:42 +01:00
Anna Kozlova 6261633a4d AIOOBE 2014-11-13 12:35:05 +01:00
Alexey Kudravtsev 18365be5d0 instantiate UnusedDeclarationInspection properly in tests; got rid of setters 2014-11-13 14:13:18 +03:00
Anna Kozlova b5a7fdbbf8 retrieve expected type by containing array creation expression (IDEA-132794) 2014-11-12 19:38:03 +01:00
Anna Kozlova d98a3da35a enum attribute values must be a constant (JLS 9.7.1 IDEA-132747) 2014-11-12 19:38:00 +01:00
Anna Kozlova 05ff6e8a83 workaround for opened captures (IDEA-132717) 2014-11-12 19:37:59 +01:00
Anna Kozlova 983808535d testdata for IDEA-132725 2014-11-12 19:37:58 +01:00
Anna Kozlova 0aeef103be convert to stream: support nested conditions 2014-11-12 19:37:57 +01:00
Anna Kozlova 1d2a8e0571 lambda -> meth ref: varargs 2014-11-12 13:13:35 +01:00
Anna Kozlova 89d1df1dc0 redundant casts in lambda return expressions (IDEA-132723) 2014-11-12 13:13:33 +01:00
Anna Kozlova bf5b3ed5b2 lambda -> method refs: cleanup ambiguity between receiver/non-receiver methods 2014-11-11 18:24:48 +01:00
Anna Kozlova 0506cb77bc lambda -> method refs: check if result method reference is valid 2014-11-11 18:24:46 +01:00
Anna Kozlova 7e141da4c2 method references: compare number of arguments for non-vararg applicability only (IDEA-132708) 2014-11-11 12:03:06 +01:00
Anna Kozlova 09f8895b2b lambda ->method ref: check if accessible (IDEA-132371) 2014-11-10 20:41:56 +01:00
Anna Kozlova 2cbd7d0d52 fix remove unused assignment fix in return statement (IDEA-132349) 2014-11-10 20:41:55 +01:00
Anna Kozlova db9d8d03fb javadoc generation: base class for anonymous (IDEA-132362) 2014-11-10 20:41:54 +01:00
peter ca3481dbd3 IDEA-131145 Completion for @Override 2014-11-10 17:53:26 +01:00
peter 38e08bdcf9 IDEA-131845 Lambdas. Wrong current statement completion. 2014-11-10 17:53:26 +01:00
Anna Kozlova 96bfd65ab3 intersection rules: flatten unbounded wildcard with everything (IDEA-132431) 2014-11-07 15:47:50 +01:00
Anna Kozlova 6aef1682d6 testdata IDEA-132560 2014-11-07 15:47:49 +01:00
Anna Kozlova cbd8be4b8e conflict resolution: missed null checks for diamonds non-physical static methods (IDEA-132534) 2014-11-07 11:57:07 +01:00
Anna Kozlova 668ccc7dd0 new inference: site substitution from remembered properties (IDEA-132417) 2014-11-06 19:11:31 +01:00
Anna Kozlova bba30278f9 method refs: fix variable initializing order (IDEA-132445) 2014-11-06 19:11:29 +01:00
Anna Kozlova 234fdbfc4f find functional expressions by method type parameter 2014-11-05 19:31:52 +01:00
Anna Kozlova accd4f0b23 redundant lambda code block: check void compatible lambdas for ambiguity conflicts 2014-11-03 16:11:26 +01:00