Commit Graph
2382 Commits
Author SHA1 Message Date
Anna Kozlova 1193a54876 warn about unused parameter if method is used locally as method reference as it could be transformed to equivalent lambda (IDEA-157988) 2016-06-29 20:32:32 +03:00
Anna Kozlova 153255f9d2 anonymous -> lambda: enable casts again (IDEA-157960) 2016-06-29 16:18:27 +03:00
Anna Kozlova 3cfd5be8c0 bombed test for resolution with cycle 2016-06-29 16:18:27 +03:00
Pavel Dolgov c3bd56a80c Java inspection: convert the intention for "Make Type Generic" into an INFORMATION-level inspection (IDEA-157727) 2016-06-28 15:13:49 +03:00
Pavel Dolgov 10c335b44e Java inspection: In "Join Declaration and Assignment" intention action warn about side effects of the initializer being removed (IDEA-157727) 2016-06-27 15:37:13 +03:00
Anna Kozlova 7e74904509 testdata 2016-06-27 12:33:28 +03:00
Pavel Dolgov 92838f48bc Java inspection: Get rid of RemoveRedundantElseAction, as it's totally inferior to DataFlowInspection (IDEA-157727) 2016-06-24 14:00:51 +03:00
Pavel Dolgov 5e380e7526 Java inspection: convert the intention for "Remove redundant lambda parameter types" into an INFORMATION-level inspection (IDEA-156028, IDEA-157727) 2016-06-24 14:00:51 +03:00
Anna Kozlova 923b6cf252 delegate params: compound 2 intentions in one, set preselection (IDEA-112043) 2016-06-24 12:04:48 +03:00
Anna Kozlova 4f45f25c38 redundant exception: ignore recursive calls (IDEA-157773) 2016-06-22 17:58:08 +03:00
Anna Kozlova 7968b2bbbb apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification (IDEA-157586) 2016-06-22 15:24:15 +03:00
Anna Kozlova 3805d51554 subtyping constraint: apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification 2016-06-22 15:24:15 +03:00
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