Commit Graph
2470 Commits
Author SHA1 Message Date
Anna Kozlova a330f9c2f7 inference: treeWalkUp if overload is done under current argumentList caused by lambda parameter type inference (IDEA-157676) 2016-06-22 15:24:15 +03:00
Anna Kozlova 1c52cb7fd6 spec: no capture conversion applicable for array type; capture conversion must be applied for array access expression type; javac: no capture conversion is applicable for array access expressions with write access (IDEA-157295) 2016-06-22 15:24:15 +03:00
Anna Kozlova 732c04076c old inference (IDEA-157398) 2016-06-22 15:24:15 +03:00
Anna Kozlova 2f550f3ba0 revert (IDEA-157631) 2016-06-20 14:02:29 +03:00
Anna Kozlova 81f3f9b17e make class static on unresolved 'static' method reference (IDEA-157364) 2016-06-20 10:29:14 +03:00
Anna Kozlova f7fbc4b4bc anonymous -> lambda: accept anonymous classes with inferred another type and ref to a parameter as the cast would be inserted (IDEA-157457) 2016-06-15 13:44:38 +03:00
Anna Kozlova 79edaf45af erasure of method call expression type if method is not generics but unchecked conversion was needed to check the applicability (IDEA-157223) 2016-06-14 11:34:32 +03:00
Bas Leijdekkers fe0824b7e2 more useful parse of broken try-with-resources resource expression (IDEA-157118) 2016-06-10 19:39:18 +03:00
Alexander Zolotov 1df198f2ef Highlighting issue links: ignore invalid replacement patterns (EA-83133) 2016-06-09 14:32:08 +03:00
Anna Kozlova db53a27296 prefer package to class in import list (IDEA-113756) 2016-06-07 20:06:58 +03:00
Anna Kozlova 9132043620 add single static import: allow second single static import if it doesn't produce ambiguity or hiding of on-demand import (IDEA-155031) 2016-06-07 10:57:34 +03:00
Anna Kozlova c83341f731 shadowing of static imports (IDEA-142600) 2016-06-07 10:57:34 +03:00
Anna Kozlova cb071c57a6 reject imports from default package (IDEA-138822; IDEA-154024) 2016-06-06 20:12:56 +03:00
Anna Kozlova 5f7200897e ambiguous constants references: shadowing (IDEA-146058) 2016-06-06 20:12:56 +03:00
Anna Kozlova de94a3250f redundant cast inside conditional when opposite has another type 2016-06-06 17:52:24 +03:00
Anna Kozlova 1fcb534fcb highlight diamonds as type parameter list (IDEA-156859) 2016-06-06 17:52:24 +03:00
Anna Kozlova e90277c07e inheritance with checkDeep=false & anonymous fixed (IDEA-151341) 2016-06-06 12:01:33 +03:00
Anna Kozlova 3e7b1dca62 conditional: treat nulls separately and accept them as numeric/boolean branches (IDEA-157025) 2016-06-03 15:28:58 +03:00
Anna Kozlova 9c95fa5524 don't try to infer from top if overloaded flag is on (IDEA-156937) 2016-06-02 17:01:51 +03:00
Anna Kozlova a82e3bb5e6 ignore parenthesis when building control flow (IDEA-156926) 2016-06-01 21:19:15 +03:00
Anna Kozlova d9c65ce4ee ensure functional interface is found if assigned to field in another file (IDEA-156592) 2016-05-31 20:21:14 +03:00
Anna Kozlova a68cb4dfd3 disable conversion from anonymous if method has javadoc 2016-05-31 18:38:26 +03:00
Anna Kozlova 99fe682d0b Revert: overload resolution: don't prefer concrete over abstract if the signatures are not override-equivalent (2bedb80d81) 2016-05-31 11:44:10 +03:00
Anna Kozlova 86aa72abe4 preserve comments while converting from lambda to method ref (IDEA-156734) 2016-05-31 11:44:10 +03:00
Anna Kozlova c09e6aa438 isLocalClass should work for nested local classes (IDEA-156777) 2016-05-30 20:01:09 +03:00
Anna Kozlova 7627e03439 fixed testdata 2016-05-30 20:01:09 +03:00
Anna Kozlova 2bedb80d81 overload resolution: don't prefer concrete over abstract if the signatures are not override-equivalent 2016-05-30 11:28:01 +03:00
Anna Kozlova 49816aeded resolve on nested captures (IDEA-156170) 2016-05-26 18:56:33 +03:00
Anna Kozlova 4585214187 add single static import: don't replace instance member calls (IDEA-153929) 2016-05-26 18:56:33 +03:00
Roman Shevchenko 24da7ad563 [java] accepts quoted strings and HTML refs after @see tag (IDEA-156403) 2016-05-26 17:34:38 +03:00
Anna Kozlova 137ee60763 create method from method reference: make abstract if inside interface and not static (IDEA-156596) 2016-05-25 19:37:58 +03:00
Anna Kozlova 7f8b5f8952 redundant cast: process branches of conditional expressions with respect to expected type for functional expressions (IDEA-156480) 2016-05-25 18:40:17 +03:00
Anna Kozlova 3e2423f245 change signature from usage: ignore types of poly expressions if they are not assignable (IDEA-156521) 2016-05-25 18:40:17 +03:00
Dennis Ushakov 997f39dc89 surrogate pairs are representable in UTF8
#WEB-21028 fixed
2016-05-24 18:34:38 +03:00
peter dc64af7f22 IDEA-156379 Suggested "collect(Collectors.toList())" ignores static Collectors import 2016-05-24 15:21:50 +02:00
Alexey Kudravtsev 13c9f95b50 register Java fields referenced from injected fragments as read/written 2016-05-24 15:23:25 +03:00
Roman Shevchenko 10ed658de9 [platform] illegal character highlighting: updated message and test data (IDEA-CR-10947) 2016-05-24 12:32:39 +02:00
Anna.Kozlova 99ce4b4f46 redundant lambda code block: check applicability over replaced lambda 2016-05-23 16:29:23 +02:00
Anna.Kozlova 107abaf891 good code red: applicability check for non-generic method requires types calculation 2016-05-20 21:44:12 +02:00
Anna.Kozlova ce58f62d19 lambda.isValueCompatible should not cache inference results for calls inside lambda body as they may depend on incomplete top level inference where LambdaExpressionCompatibilityConstraint is reduced (IDEA-156311) 2016-05-20 18:52:45 +02:00
Anna.Kozlova ad6352ce0b upcoming changes to the spec and javac (JDK-8145614; JDK-8142876) 2016-05-20 18:52:45 +02:00
Roman Shevchenko 3cb98099d8 [java] illegal character highlighting (IDEA-144046) 2016-05-20 17:49:09 +02:00
Anna.Kozlova 25352dce0b avoid checks over not applicable methods (IDEA-156196) 2016-05-19 16:47:28 +02:00
peter d167a4e820 don't suggest break/continue inside lambda/anonymous inside a loop (IDEA-CR-10869) 2016-05-19 10:58:51 +02:00
Anna.Kozlova d2136b76b2 disable import of static constant on type element/assignment place (IDEA-156162) 2016-05-17 21:13:20 +02:00
Anna.Kozlova ff555bd832 disable remove redundant else if then branch can throw exception (IDEA-156142) 2016-05-17 17:41:48 +02:00
Anna.Kozlova 2755100873 assign weaker access: find method to implement (IDEA-153610) 2016-05-13 18:55:16 +02:00
Anna.Kozlova b5e7d766a1 add static import: remove qualifier in case of inheritance (IDEA-155419) 2016-05-12 21:06:35 +02:00
Anna Kozlova 1782d678a7 include all constructor candidates to calculate change signature fix (IDEA-128891) 2016-05-11 18:08:55 +02:00
Anna Kozlova dbe1598e9f highlight implicit constructor call as method (IDEA-152964) 2016-05-11 16:05:47 +02:00