Commit Graph

442 Commits

Author SHA1 Message Date
Anna Kozlova
bf5b3ed5b2 lambda -> method refs: cleanup ambiguity between receiver/non-receiver methods 2014-11-11 18:24:48 +01:00
Anna Kozlova
0506cb77bc lambda -> method refs: check if result method reference is valid 2014-11-11 18:24:46 +01:00
Anna Kozlova
09f8895b2b lambda ->method ref: check if accessible (IDEA-132371) 2014-11-10 20:41:56 +01:00
Anna Kozlova
2cbd7d0d52 fix remove unused assignment fix in return statement (IDEA-132349) 2014-11-10 20:41:55 +01:00
Anna Kozlova
accd4f0b23 redundant lambda code block: check void compatible lambdas for ambiguity conflicts 2014-11-03 16:11:26 +01:00
Anna Kozlova
7547c92c1f anonym -> lambda: expression lambda should be used with care due to void/value ambiguity (IDEA-125951) 2014-11-03 16:03:53 +01:00
Anna Kozlova
3e3824fc89 add field to enum: ensure correct position after comment (IDEA-131820) 2014-10-29 18:05:55 +01:00
Anna Kozlova
71d92723a8 create constructor params from field: do not reject next constructors if current one is chained (IDEA-131746) 2014-10-23 14:46:31 +02:00
Anna Kozlova
fa2c07e579 block lambda -> expr: disable if found comments outside of expression (IDEA-131749) 2014-10-23 14:46:27 +02:00
Anna Kozlova
6780d694c7 IDEA-131456 //noinspection InspectionName(s) should fully support comments 2014-10-20 19:47:14 +02:00
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