Commit Graph

416 Commits

Author SHA1 Message Date
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
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