Commit Graph

506 Commits

Author SHA1 Message Date
peter fd62fed994 dfa: don't suggest to convert lvalue to ternary expression (IDEA-140519) 2015-05-20 15:21:20 +02:00
peter 069adff3dd IDEA-140331 Improve intention action for 'Method invocation may produce NPE' 2015-05-18 17:02:51 +02:00
Anna Kozlova 90dd4c5a31 EA-68330 - AIOOBE: RedundantLambdaParameterTypeIntention.isAvailable
process lambdas with formal param types at vararg position
2015-05-12 12:26:42 +02:00
Anna Kozlova 2f47f0caf0 migration to stream api: disable for raw types (IDEA-140095) 2015-05-08 21:01:45 +02:00
Anna Kozlova 95dfffccb0 replace with collect: insert cast for method reference and simplify when redundant (IDEA-139704) 2015-04-28 13:04:58 +02:00
Anna Kozlova b61e8bdb39 access static via instance: ensure type params are attached to the class reference (IDEA-139440) 2015-04-24 13:46:13 +02:00
Anna Kozlova e5097dfc24 lambda -> method ref: ensure that capture is checked according to the param ref; avoid wildcards in method ref qualifiers (IDEA-139529) 2015-04-24 13:46:11 +02:00
Anna Kozlova f0fae34076 intersection types in cast: provide "delete repeated interface" fix 2015-04-20 10:19:24 +02:00
peter 6c8750291f IDEA-124359 Add Inspection for detecting nullable values passed into Optional.of()
test that it correctly works with Guava
2015-04-14 23:12:39 +03:00
peter 1b7a05e26f IDEA-138553 Inspection for usages of Optinoal.ofNullable() for values known to be null or non-null 2015-04-14 23:12:38 +03:00
Anna Kozlova 778952b6e3 dataflow inspection: suggest to replace Optional.of with Optional.ofNullable if value could be null (IDEA-124359) 2015-04-08 21:14:35 +02:00
Anna Kozlova b62f3b746c change return type fix: ensure parameter types are untouched (IDEA-138748) 2015-04-08 12:06:01 +02:00
Anna Kozlova b8683c3640 lambda -> meth ref: accept receiver only for calls on lambda params (IDEA-138593) 2015-04-01 20:39:31 +02:00
Anna Kozlova a4eba96102 anonymous -> lambda: name conflict with params resolution (IDEA-138494) 2015-03-31 13:48:26 +02:00
Anna Kozlova 2e736c18fe surround with try-catch: expand expression lambda to perform operation (IDEA-134500) 2015-03-26 12:07:12 +01:00
Anna Kozlova 6ae3daeef1 anonymous -> lambda: do not reject cases when return type can't be correctly inferred without target type constraints (IDEA-137390) 2015-03-24 21:04:06 +01:00
Anna Kozlova 4b3cebcf53 reformat on replace type args with <> (IDEA-138079) 2015-03-24 21:04:04 +01:00
Anna Kozlova 8a56a94ff1 add assert != null fix should be disabled on the class level (EA-66814 - assert: AddAssertStatementFix.applyFix) 2015-03-23 20:33:20 +01:00
Anna Kozlova 4d079801bf incompatible types quickfix: reregister for variable initializer (IDEA-138023) 2015-03-23 17:57:15 +01:00
Anna Kozlova e09ec985bf light elements should not be simplified especially when they were not changed (EA-47908 - IOE: CheckUtil.checkWritable) 2015-03-19 19:55:19 +01:00
Anna Kozlova 50043d2bd9 EA-65747 - assert: LambdaCanBeMethodReferenceInspection.canBeMethodReferenceProblem
(cherry picked from commit 694a7b3b7869e1be50170bf6490c8b3e30328c4b)
2015-03-11 20:36:01 +01:00
Anna Kozlova 87a7731477 disable stream conversion if qualifier is used inside method call args (IDEA-137186)
(cherry picked from commit 24dfdad535f2c33e4d1f4d004a28b0ca45012c1b)
2015-03-11 20:34:30 +01:00
Anna Kozlova 979dca3880 hide duplicated 'Add constructor parameter' fix (IDEA-137231)
(cherry picked from commit 7c5d5ec6c5141cf7fedf6d55712fb2dffc0d3ace)
2015-03-11 20:29:06 +01:00
Anna Kozlova f6de981477 ensure anonymous is not converted to lambda/method ref if it contains inner classes or class initializers
(cherry picked from commit 32afe318e3bacd714f3e0b49d8f904402b17a9c2)
2015-03-11 20:27:02 +01:00
Anna Kozlova 81ed04a7dc search for method implementations with correct substitutor 2015-02-20 22:03:19 +01:00
Anna Kozlova bcbc25e1de lambda -> method reference: ensure functional type was not changed after transformation (IDEA-136163) 2015-02-17 14:58:58 +01:00
Anna Kozlova 7205db4b58 anonym -> lambda: evaluate ground type for type, inferred by position (IDEA-135211) 2015-01-14 16:45:51 +01:00
Anna Kozlova 73239255ec disable add exception to catch/generalize catch inside functional interface inside try statement (IDEA-135171) 2015-01-14 13:25:03 +01:00
Anna Kozlova ffbe05e14d stream migration: reject collection conversion if qualifier depends on loop parameter (IDEA-135104) 2015-01-13 20:55:48 +01:00
Anna Kozlova fcb252d25e ensure functional type for formal parameters lambda is valid after method reference replacement (IDEA-135053) 2015-01-08 19:54:23 +01:00
Anna Kozlova e4e0a33134 add explicit type arguments: preserve nested wildcards (IDEA-134967) 2015-01-08 13:33:00 +01:00
Anna Kozlova fa99ec2a74 lambda -> method ref: do not skip array initializer; ensure dimension expressions are correct 2015-01-02 12:05:46 +01:00
Anna Kozlova 92bb2b6d65 extract if condition: ensure brackets (IDEA-134698) 2014-12-29 18:57:46 +01:00
Andrey Starovoyt b20fc1c936 live templates: incorrect adding generic parameter IDEA-134434 2014-12-23 18:18:43 +03:00
Anna Kozlova e6371b208f lambda <-> anonymous <-> method ref: collapse lambda block when applicable refactored (IDEA-134509) 2014-12-18 19:20:21 +01:00
Anna Kozlova 79da0849e2 disable lambda -> method ref if resulted methods are not the same (IDEA-134486) 2014-12-18 14:13:23 +01:00
Anna Kozlova 6336e973c9 add exception to throws: find functional interface method for method references; discard if in library (IDEA-134468) 2014-12-18 14:13:20 +01:00
Anna Kozlova 24a7a43f7c redundant lambda code block: ensure conflicts between same param numbers are checked 2014-12-17 20:13:47 +01:00
Dmitry Jemerov 65666dfa8c capitalize JUnit correctly 2014-12-11 16:56:24 +01:00
Anna Kozlova 8210171223 anonym -> lambda: ignore calls to object and qualified calls when check to interface methods is performed (IDEA-134039) 2014-12-08 18:59:51 +01:00
Anna Kozlova 2dc893734e force "prefer long names" if multiple fields/parameters of same type are generated (~ IDEA-99564) 2014-12-08 16:19:29 +01:00
Dmitry Avdeev 224ee86927 test fix 2014-12-06 16:14:56 +03:00
Dmitry Avdeev 2dece3cb4b sentence capitalization 2014-12-06 14:31:18 +03:00
Dmitry Avdeev ee678ac849 test fix 2014-12-06 14:09:25 +03:00
Dmitry Avdeev 6811ae3de3 sentence capitalization 2014-12-06 13:25:00 +03:00
Dmitry Avdeev e6681a176d test data fixed 2014-12-06 13:10:10 +03:00
Dmitry Avdeev 91a5684fee sentence capitalization 2014-12-06 13:02:00 +03:00
Dmitry Avdeev b2147def98 sentence capitalization 2014-12-06 12:52:25 +03:00
Dmitry Avdeev 127db13c12 create ... fixes: sentence capitalization 2014-12-06 12:48:06 +03:00
Dmitry Avdeev bdf912b7b4 create class fixes: sentence capitalization 2014-12-06 12:41:46 +03:00