Commit Graph

402 Commits

Author SHA1 Message Date
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
Anna Kozlova 8cd1ee6344 remove assignment: fix for assignment nested in expression, not statement (IDEA-123903) 2014-04-16 21:23:47 +02:00
Anna Kozlova e512a2f07a EA-55951 - CCE: StreamApiMigrationInspection$ReplaceWithForeachCallFix.applyFix 2014-04-16 19:19:20 +02:00
Anna Kozlova e7b3efbf80 EA-55962 - CCE: DefUseInspection$RemoveInitializerFix.sideEffectAwareRemove 2014-04-16 19:19:19 +02:00
Anna Kozlova af9135166d try to pass self name as default value during create parameter from usage (IDEA-123780) 2014-04-16 10:30:59 +02:00
Anna Kozlova 9d3b4638ce join declaration and assignment (IDEA-92226; IDEA-123689) 2014-04-14 21:38:56 +02:00
Anna Kozlova b708f2006e remove unused assignment: do not move the transformed statement up as it could change the semantic and is not evident (IDEA-123841) 2014-04-14 21:38:55 +02:00
Anna Kozlova 36466df690 redundant type args: check also method reference qualifiers 2014-04-11 17:06:03 +02:00
Anna Kozlova a3348c56cb lambda-> method ref: do not insert type args to reference type if they were inferred for lambda expression 2014-04-11 17:06:01 +02:00
Anna Kozlova 52951cfbfe allow to replace strings with non-final static 'constants' (IDEA-119480) 2014-04-10 15:27:37 +02:00
Anna Kozlova 2fa8491e90 IDEA-112552 "Replace with lambda" should use expression lambda when possible 2014-04-08 18:28:25 +02:00
Anna Kozlova c8bbd66850 anonym -> lambda, method ref: do not suggest replacement when default method is called out of functional interface context 2014-04-08 16:45:38 +02:00
Anna Kozlova fcd50614bb name suggestions for static non-final fields should escape _ (IDEA-123441) 2014-04-04 17:55:26 +02:00
Anna Kozlova edf024ca23 ensure assert inserted in correct place (IDEA-123296) 2014-04-02 20:54:10 +02:00
Anna Kozlova cbe0d6d860 create method from method reference (IDEA-112556) 2014-04-02 13:52:31 +02:00
Anna Kozlova 5bc8717dc9 EA-55507 - IOE: PsiJavaParserFacadeImpl.createStatementFromText 2014-04-01 14:17:07 +02:00
Anna Kozlova 123ba34507 create enum constant: support constant creation when static import is used, process varargs method candidates as vararg/basic separately (IDEA-121287) 2014-03-28 20:31:52 +01:00
Anna Kozlova f89a7938fc IDEA-122974 expected type suggester should ignore 'null' types 2014-03-28 17:42:11 +01:00
Anna Kozlova fddab7b0c0 IDEA-123034 Unused assignment inspection - Remove quick fix 2014-03-28 17:42:10 +01:00
Anna Kozlova a4f36f237c anonym to lambda: rename conflicting locals (IDEA-120221) 2014-03-26 18:54:40 +01:00
Anna Kozlova aa6dbcd24a collapse statement lambda to expression lambda: enable for value compatible lambdas (IDEA-122785) 2014-03-24 20:22:24 +01:00
Anna Kozlova b19b34af63 shorten qNames on adding explicit type arguments (IDEA-122667) 2014-03-24 20:22:23 +01:00
Anna Kozlova 43b8f9cdf4 stream migration: collapse identity matching (IDEA-122706) 2014-03-24 20:22:22 +01:00
Anna Kozlova d8747dfea6 stream: do not suggest collect when filter depends on collection (IDEA-122410) 2014-03-19 22:02:25 +01:00
Anna Kozlova b92955274f IDEA-122392 intention: "Create Local Var from instanceof Usage" does not format generated code 2014-03-19 22:02:24 +01:00
Anna Kozlova e6547e3991 poly conditional expression type = target type (IDEA-122401) 2014-03-19 19:32:35 +01:00
Anna Kozlova 6af1d4e49a field can be local: group by top level blocks (IDEA-121490) 2014-03-18 20:00:56 +01:00
Anna Kozlova ed13961e23 IDEA-122347 No quick fix to add explicit type arguments 2014-03-18 16:49:03 +01:00
Anna Kozlova 3704bfc631 IDEA-121234 IDEA can not update method return type 2014-03-14 20:43:58 +01:00
Anna Kozlova 912e13d8af add junit4.jar together with hamcrest (IDEA-119626)
(cherry picked from commit 8adb1aadfc02ee5450f6f40d6e62892bef5a97e0)
2014-03-12 10:15:26 +01:00
Roman Shevchenko 64c651e7c5 IDEA-54397 (type annotations in override/implement) 2014-03-11 15:08:03 +01:00