Commit Graph
1340 Commits
Author SHA1 Message Date
Bas Leijdekkers 6d2515cf2f fix IDEA-112499 for single member static imports 2014-03-07 16:54:18 +01:00
Bas Leijdekkers 811fdf58e0 fix IDEA-112499 for on demand imports 2014-03-07 16:54:18 +01:00
Bas Leijdekkers b52ec5f33f IDEA-121784 (Add on demand static import intention not available when single-member static import present) 2014-03-07 16:54:17 +01:00
Bas Leijdekkers 557cca9d2d IDEA-108072 (Don't suggest to add on-demand static import for the current class) 2014-03-06 19:16:12 +01:00
Anna Kozlova 1a931f9871 lambda: unhandled exceptions inside method body should be treated as those inside anonymous classes (IDEA-121741) 2014-03-06 15:30:24 +01:00
Anna Kozlova a042720e74 stream migration inspection: preserve comments (IDEA-121679) 2014-03-06 15:30:23 +01:00
Anna Kozlova b060c817e0 stream migration inspection: collapse only primitive new initializers (IDEA-121745) 2014-03-06 15:30:22 +01:00
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