Commit Graph

22 Commits

Author SHA1 Message Date
Tagir Valeev 43b86a988e CodeEditUtil#removeChildren: fixed nextLeaf determination
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file)

Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
2018-03-03 15:47:21 +07:00
Pavel Dolgov d14254cade Java: Add braces when extracting method from then/else branch or loop body (IDEA-181096) 2017-11-14 12:45:21 +03:00
Pavel Dolgov 7e689ac90c Java: Detect which output variables are used after the method call when extracting a method object (IDEA-152688) 2017-06-14 15:07:32 +03:00
Egor.Ushakov 59a2c555ca IDEA-171094 Extract method object fails 2017-04-07 16:41:58 +03:00
Egor.Ushakov e1f423e1d4 IDEA-171134 Extract as method object generates the same getters 2017-04-07 15:21:09 +03:00
Anna.Kozlova 2a8fc8cbc6 extract method object: process parameters as output variables (IDEA-162642) 2016-10-17 19:00:10 +02:00
Egor.Ushakov 4caabe011d IDEA-151867 ExtractMethodObject drops declaration of local variable when it is shared with a return value 2016-02-25 20:47:12 +03:00
Anna Kozlova c6b72e19f2 testdata fixed 2015-03-13 21:22:57 +01:00
Anna Kozlova 8c6e9543d5 fix getter name for boolean field in testdata 2015-01-30 22:28:02 +03:00
Anna Kozlova 6edc7c729c extract method object: postpone formatting (IDEA-114278) 2015-01-26 20:19:16 +03:00
anna 98b70db0a7 extract method object: avoid element invalidation by batch update (IDEA-98365) 2013-01-07 11:45:25 +01:00
anna e47dc7accb extract method object: do not make static when already static (IDEA-98290) 2012-12-31 13:58:17 +01:00
anna fabf91af4d extract method object: process exit statements as they may contain refs to outer vars (IDEA-96772); disable duplicate extraction 2012-12-06 17:54:16 +01:00
Anna Kozlova 58d7db1d6f extract method object: wrap if/loop bodies in {} when needed (IDEA-92156) 2012-10-13 18:51:26 +02:00
Denis.Zhdanov cbd0fe4e8e IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
Test data is updated
2012-09-06 13:21:42 +04:00
anna 1793a5ad90 extract method object from anonymous class: update method call site when context should be changed; do not change call site though 2011-10-11 15:13:05 +02:00
anna b4a99e051b correct field/getters naming in extract method object (EA-26268 - assert: ExtractMethodObjectProcessor.b) 2011-04-15 20:24:51 +02:00
anna 35a7143b52 extract method object: do not process inner classes return statements (IDEA-63806) 2011-01-14 17:42:55 +01:00
anna 58c376fcde extract method object from expression: declare necessary variables after call to replace invoke() with correct getter 2010-12-29 16:21:13 +03:00
anna 0c79b901e1 extract method object: created object name should be unique (suggestion) 2010-11-15 16:54:59 +03:00
anna 8be6b22b0a extract method object: conditional exit; nullable check should be processed separately ( IDEA-52452 ) 2010-05-11 14:42:12 +04:00
Dmitry Jemerov 571ab0fc93 test++ 2009-09-10 20:25:31 +04:00