Commit Graph

1233 Commits

Author SHA1 Message Date
Anna Kozlova
09c6a8db6c method refs: search for potentially applicable members in supers (IDEA-121737) 2014-03-06 11:42:08 +01:00
Anna Kozlova
5412fbc960 overload resolution: grab lambda from nested parenthesis as well as conditional expressions 2014-03-06 11:42:07 +01:00
Roman Shevchenko
4969888e1f java: no annotations needed in type cast 2014-03-06 10:55:44 +01:00
Roman Shevchenko
1687a22e89 Cleanup (unneeded test data) 2014-03-06 10:55:44 +01:00
Anna Kozlova
f86ac6f741 new inference: use equals bounds during incorporation 2014-03-06 10:15:25 +01:00
Anna Kozlova
e07fdee02a testdata for IDEA-118965 2014-03-06 10:15:24 +01:00
Anna Kozlova
46112ee3ec new inference: cache lambda functional type during expression constraints reduction (IDEA-121315) 2014-03-06 10:15:23 +01:00
Anna Kozlova
5029b3fc55 new inference: do not prefer specifics based on void return type for both void and value compatible lambdas 2014-03-06 10:15:22 +01:00
Anna Kozlova
95977a086c new inference: cleanup 2014-03-05 16:17:00 +01:00
Anna Kozlova
380c7a998e testdata for IDEA-121661 2014-03-05 11:39:48 +01:00
Anna Kozlova
0fa7d08f83 IDEA-121658 Java 1.8: "Replace with forEach" quick fix is not suggested if for statement is not surrounded with braces 2014-03-05 11:39:47 +01:00
Anna Kozlova
e31638ac97 IDEA-121621 Java 1.8: "Replace with collect" quick fix inserts unresolved method reference 2014-03-04 19:29:05 +01:00
Roman Shevchenko
c6947e3831 IDEA-108454 (test added) 2014-03-04 17:42:29 +01:00
Roman Shevchenko
b9b76dca15 java: type annotations 2014-03-04 10:53:04 +01:00
Anna Kozlova
80d6e1f570 new inference: use site substitutor during return constraints processing (red code in Collectors) 2014-03-03 20:20:57 +01:00
Anna Kozlova
b55527aba3 testdata for IDEA-118965 2014-03-03 20:20:56 +01:00
Anna Kozlova
eb3695fffc new inference: non wildcard parametrization: reject primitive bounds 2014-03-03 13:43:47 +01:00
Anna Kozlova
ab2348a911 new inference: diamond in lambda return workaround 2014-03-03 13:43:46 +01:00
Anna Kozlova
6087cbacb0 java 1.8, stream api migration: convert to method refs 2014-03-03 13:43:44 +01:00
Anna Kozlova
fb65345150 java 1.8, stream api migration: shorten class names 2014-03-03 13:43:43 +01:00
Anna Kozlova
0cab1e2e81 java 1.8, stream api migration: collect (to be continued) 2014-03-03 11:00:05 +01:00
Anna Kozlova
c2bee641c0 restore error on diamonds under 1.6 (IDEA-121377) 2014-02-28 20:07:10 +01:00
Anna Kozlova
d8b3e5c7fd new inference: captures should stay closed inside nested calls 2014-02-28 20:07:08 +01:00
Anna Kozlova
e683dc8fc1 new inference: wildcard parametrization for lambda with formal params: assignability check for complete parametrization only 2014-02-28 20:07:07 +01:00
Roman Shevchenko
cfcc34be5f IDEA-121251 (stray annotation highlighted) 2014-02-28 19:33:48 +01:00
Anna Kozlova
a047666d57 new inference: non wildcard parametrization against the spec 2014-02-28 16:13:52 +01:00
Anna Kozlova
cf066deca7 default methods: do not warn about protected methods from Object 2014-02-28 09:59:35 +01:00
Anna Kozlova
80c776355c testdata fixed 2014-02-27 21:02:58 +01:00
Anna Kozlova
e7cb908c95 new inference: method refs: apply reference rules first 2014-02-27 21:02:57 +01:00
Anna Kozlova
66a8dedb8c new inference: method refs: accept qualifier substitutor when nothing more could be inferred 2014-02-27 18:32:43 +01:00
Anna Kozlova
b31b23cd0b new inference: temp solution to exclude inference results from nested call of the same method on the outer level 2014-02-27 18:32:41 +01:00
Anna Kozlova
5dd7e0622c new inference: support for nested same method calls 2014-02-27 18:32:40 +01:00
Bas Leijdekkers
7b58b81761 IDEA-121215 (Java 1.8: "Interface may be annotated with @FunctionalInterface" inspection should not report @interfaces) 2014-02-26 21:01:13 +01:00
Anna Kozlova
6033fa8670 provide type parameter based type with site substitutor to be accepted during type arguments check 2014-02-26 13:15:24 +01:00
Anna Kozlova
9b637e541b for loop -> forEach call chain inspection 2014-02-25 22:03:28 +01:00
Anna Kozlova
e967a04b4b redundant lambda param types: take site subst into account 2014-02-25 22:03:27 +01:00
Anna Kozlova
6ded813afe new inference: most specifics, varargs case 2014-02-25 14:17:44 +01:00
Anna Kozlova
89aefc86f1 new inference: non-wildcard parameterization 2014-02-25 14:17:43 +01:00
Anna Kozlova
1b50ea2eb2 lambda -> anonym: disable in unexpected context where cast won't help (IDEA-120165) 2014-02-25 10:15:19 +01:00
Anna Kozlova
24fbf809a1 anonym -> lambda: check initializer inside constructor for final fields (IDEA-120698) 2014-02-24 21:49:00 +01:00
Anna Kozlova
44dde647bb anonym -> lambda: do not suggest when forward references are detected (IDEA-120699) 2014-02-24 21:48:59 +01:00
Anna Kozlova
7a9bf2ac51 reject 1.7 varargs hack as 1.8 reject the code again even with target 1.7 2014-02-24 20:35:44 +01:00
Anna Kozlova
7a70428d04 lambda: accept ellipsis parameter when array expected (IDEA-117124) 2014-02-24 18:59:47 +01:00
Anna Kozlova
e0ce9deea3 testdata 2014-02-24 18:59:43 +01:00
Anna Kozlova
f1b256f416 forbid lambda in conditional inside cast context 2014-02-24 18:59:42 +01:00
Anna Kozlova
232f8bd465 new inference: strict subtyping: skip raw types 2014-02-24 18:59:41 +01:00
Anna Kozlova
828cb5a1a2 new inference: erase return type if unchecked conversion was performed 2014-02-24 18:59:40 +01:00
Anna Kozlova
0f39a4ca18 method refs: restore error on invalid array creation 2014-02-21 21:47:03 +01:00
Anna Kozlova
b587af7151 exact method refs most specific: void compatibility 2014-02-21 21:47:01 +01:00
Anna Kozlova
2f80e7d9c0 new inference: reject partial computation 2014-02-21 18:55:54 +01:00