Commit Graph

387 Commits

Author SHA1 Message Date
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
Bas Leijdekkers 54fccb5efd IDEA-121828 (Add single member static import intention should be available on incomplete code) 2014-03-07 16:54:19 +01:00
Bas Leijdekkers 6d2515cf2f fix IDEA-112499 for single member static imports 2014-03-07 16:54:18 +01:00
Bas Leijdekkers 811fdf58e0 fix IDEA-112499 for on demand imports 2014-03-07 16:54:18 +01:00
Bas Leijdekkers b52ec5f33f IDEA-121784 (Add on demand static import intention not available when single-member static import present) 2014-03-07 16:54:17 +01:00
Bas Leijdekkers 557cca9d2d IDEA-108072 (Don't suggest to add on-demand static import for the current class) 2014-03-06 19:16:12 +01:00
Anna Kozlova 1a931f9871 lambda: unhandled exceptions inside method body should be treated as those inside anonymous classes (IDEA-121741) 2014-03-06 15:30:24 +01:00
Anna Kozlova a042720e74 stream migration inspection: preserve comments (IDEA-121679) 2014-03-06 15:30:23 +01:00
Anna Kozlova b060c817e0 stream migration inspection: collapse only primitive new initializers (IDEA-121745) 2014-03-06 15:30:22 +01:00
Roman Shevchenko 4969888e1f java: no annotations needed in type cast 2014-03-06 10:55:44 +01:00
Roman Shevchenko 1687a22e89 Cleanup (unneeded test data) 2014-03-06 10:55:44 +01:00
Anna Kozlova 380c7a998e testdata for IDEA-121661 2014-03-05 11:39:48 +01:00
Anna Kozlova 0fa7d08f83 IDEA-121658 Java 1.8: "Replace with forEach" quick fix is not suggested if for statement is not surrounded with braces 2014-03-05 11:39:47 +01:00
Anna Kozlova e31638ac97 IDEA-121621 Java 1.8: "Replace with collect" quick fix inserts unresolved method reference 2014-03-04 19:29:05 +01:00
Roman Shevchenko c6947e3831 IDEA-108454 (test added) 2014-03-04 17:42:29 +01:00
Anna Kozlova 6087cbacb0 java 1.8, stream api migration: convert to method refs 2014-03-03 13:43:44 +01:00