Commit Graph

432 Commits

Author SHA1 Message Date
Anna Kozlova
3ad7219cdb disable anonymous -> lambda replacement when 'runtime annotated' (IDEA-131206)
(cherry picked from commit 07b10689487a95a5d2de78c25d1a7f0c44b6607d)
2014-10-17 21:02:10 +02:00
Anna Kozlova
2ecc4272ac merge unused declaration and unused symbol inspections 2014-10-14 10:24:58 +02:00
Anna Kozlova
b2a07e2eee lambda: stop at method if it's located inside lambda (IDEA-131087)
(cherry picked from commit 890ffa719208e467b1ba238d248dbbf102c71b76)
2014-10-13 19:33:05 +02:00
Anna Kozlova
99f55229dc lambda -> meth ref: fix this qualifier in case of inheritance
(cherry picked from commit 5273314961f0fbf32c18ea3d602410c635caf03f)
2014-10-13 19:24:13 +02:00
Alexey Kudravtsev
fc68d2a0d6 IDEA-130782 make RemoveUnusedVariableUtil#checkSideEffects Contract(pure) aware 2014-10-08 15:01:58 +04:00
Anna Kozlova
9f72b14b9c lambda -> method reference: ambiguity prevented (IDEA-130126) 2014-09-30 19:18:44 +02:00
Anna Kozlova
d34eaa9ad2 shorten qualified names in change signature return type (IDEA-130277) 2014-09-29 14:08:35 +02:00
Anna Kozlova
3e13cddf2b lambda -> method reference: exclude receiver/non-receiver ambiguity (IDEA-129924) 2014-09-17 20:45:43 +04:00
Anna Kozlova
ea883dd1e7 stream migration: do not suggest to migrate if exceptions are thrown inside the block (IDEA-129484) 2014-09-12 21:36:55 +04:00
Anna Kozlova
a9c44fb386 block lambda -> exp lambda: more accurate check for conflict (IDEA-129780) 2014-09-12 16:24:22 +04:00
Anna Kozlova
f35847c962 support for disjunction types in create from usage intentions (IDEA-129453) 2014-09-04 15:07:12 +04:00
Anna Kozlova
32448804ae redundant lambda code block: do not suggest change void/value compatibility 2014-09-03 16:54:34 +04:00
Anna Kozlova
8369db7878 create from new: fix type parameters setup (IDEA-128679; IDEA-128682) 2014-08-18 15:21:11 +04:00
Bas Leijdekkers
26be69646b EA-59436 (IOE: PsiJavaParserFacadeImpl.createExpressionFromText) 2014-08-15 17:26:51 +02:00
Anna Kozlova
d27529ff3b normalize array initializer in surround with try catch (IDEA-128218) 2014-08-14 16:04:52 +04:00
Anna Kozlova
6a8c124ada fix all naming to avoid confusion: fix all '' in file 2014-08-11 19:01:47 +04:00
Anna Kozlova
4a6095476f EA-57951 - AIOOBE: AnonymousCanBeLambdaInspection.getInferredType
anonymous -> lambda on varargs place
2014-07-23 20:57:31 +02:00
Anna Kozlova
e9a17dfad8 field can be local: when field is used in method for read it can't be converted to local if used in another methods (IDEA-127159) 2014-07-22 20:37:38 +02:00
Anna Kozlova
bacc3c2ad6 lambda -> method refs: collapse when acceptable method without supers found 2014-07-21 20:47:52 +02:00
Anna Kozlova
4b7122b83d shorten FQNs when insert casts (IDEA-127573) 2014-07-21 19:19:15 +02:00
Anna Kozlova
91f505e2f7 create static method from usage in interface (IDEA-127563) 2014-07-21 19:19:14 +02:00
Anna Kozlova
a46f4cef52 anonym -> lambda: disable in case when inferred type differs from type of anonymous class and parameter of param type is used inside (IDEA-127603);
BTW param.toString would be also rejected
2014-07-21 17:56:21 +02:00
Anna Kozlova
590ed4cc23 disable create instance field inside interface (IDEA-127211) 2014-07-14 20:58:24 +02:00
Anna Kozlova
1f8864bfa9 anonym -> lambda: forbid when result in illegal self reference (IDEA-126763) 2014-07-02 12:26:16 +02:00
Anna Kozlova
b524d609c1 lambda -> method ref: forbid inside anonymous; qualify this (IDEA-126750) 2014-07-02 11:00:55 +02:00
Dmitry Batkovich
7c0813c27a Add qualifier to unqualified method call quick fix added (similar to "Static Method Import...") IDEA-94719 2014-06-17 19:26:05 +04:00
Anna Kozlova
668e1f52e2 redundant assignment in arg list fixed (IDEA-126190) 2014-06-16 11:25:23 +04:00
Dmitry Batkovich
aac112074d IDEA-105132 Swap adjoined if-statements intention. Invokes on "else" keyword 2014-06-11 15:13:02 +04:00
Anna Kozlova
de7387fd40 provide remove assignment fix for silly assignment inspection (IDEA-125993) 2014-06-06 13:57:02 +04:00
Anna Kozlova
9d5429e77f remove variable: do not leave tailing loops/ifs (IDEA-124489) 2014-06-05 11:45:20 +04:00
Anna Kozlova
41b974e36f anonym -> lambda: disable if target SAM type is raw and methods are called on params with Object erasure (IDEA-125613) 2014-05-29 21:49:26 +04:00
Anna Kozlova
d67e9b4f4b IDEA-118279 create constructor params: apply cleanup 2014-05-29 16:17:22 +04:00
Dmitry Batkovich
80a7f69972 IDEA-25183 2014-05-28 17:46:34 +04:00
Dmitry Batkovich
dff9280491 IDEA-93040 2014-05-28 16:06:16 +04:00
Anna Kozlova
d5ee2ec744 testdata fixed 2014-05-26 22:21:20 +04:00
Anna Kozlova
32fe2746f9 stream api: do not collapse loops when body is not throws compatible (IDEA-125541) 2014-05-26 15:35:49 +04:00
Anna Kozlova
d2c04b864f anonymous -> lambda: do not collapse to lambda functional interfaces with generics methods, accepted by method refs though 2014-05-26 07:46:09 +04:00
Anna Kozlova
0da1a208cc ensure expression valid, initializer expression should be already replaced (IDEA-125231) 2014-05-19 14:08:56 +04:00
Anna Kozlova
8d2b706f59 change method return type on call site (IDEA-125166) 2014-05-16 20:42:44 +04:00
Anna Kozlova
2b8c3330c5 fixed type annotations restoring (IDEA-124889) 2014-05-15 16:12:38 +04:00
Anna Kozlova
1ab69ce2b2 stream migration: missed qualifiers restored (IDEA-124820) 2014-05-07 11:57:36 +04:00
Anna Kozlova
a2a076c02a lambda -> method ref: reject anonymous class replacement (IDEA-124748) 2014-05-05 17:12:13 +04:00
Anna Kozlova
dc73135a77 accept static methods with body in interfaces (IDEA-124745) 2014-05-05 17:12:12 +04:00
Anna Kozlova
c2957e7fe8 anonymous -> lambda: conflicting ref in var declaration (IDEA-124525) 2014-04-28 15:12:46 +02:00
Anna Kozlova
a4f2f0e73b create method from method ref: fis for type element qualifier (IDEA-124485) 2014-04-25 18:38:40 +02:00
Anna Kozlova
f3e1d968b8 IDEA-124385 2014-04-25 18:38:38 +02:00
Anna Kozlova
0c1ec73530 IDEA-124163 2014-04-25 14:21:55 +02:00
Anna Kozlova
209d176ea6 disable stream api conversion on iterable (IDEA-124222) 2014-04-23 20:10:18 +02:00
Anna Kozlova
1c431a8076 create meth reference from usage: substitute param types (IDEA-124322) 2014-04-23 16:33:48 +02:00
Anna Kozlova
c160fc5adf copy to temp/array for non-effectively final variables used in lambda expressions 2014-04-23 16:33:47 +02:00