Artemiy Sartakov
6fbd5cc914
ConvertToLocalInspection: CR fixes (IDEA-CR-42222)
...
1. localVariableIsCopy -> isLocalVariableCopy
2. added more precise convert to local quick fix message (with info about to where field will be inlined)
3. fixed tests for new convert to local quick fix messages
4. removed inlineVariable(PsiVariable, PsiExpression)
2019-01-28 18:32:01 +07:00
Artemiy Sartakov
52f49b5c5f
ConvertToLocalInspection: inline created local variable if this variable is a copy of initializer (IDEA-33733)
2019-01-17 20:26:42 +07:00
Anna.Kozlova
2a8a14a528
convert field to local: preserve comments
2018-08-14 15:06:25 +02:00
Anna Kozlova
db4d62e485
change test data to be more realistic
2018-06-01 11:15:29 +03:00
Anna Kozlova
f1862f7e01
refactor after review IDEA-CR-33048
2018-05-30 16:31:02 +03:00
Anna Kozlova
323a164d0c
convert field to local: clear final modifier when used for write (IDEA-192735)
2018-05-28 18:54:02 +03:00
Anna Kozlova
e524d46129
convert to local: restore comments once (IDEA-192268ˆ)
2018-05-18 20:16:28 +03:00
Anna.Kozlova
443fa52729
restore comments on convert to local (IDEA-178942)
2017-11-21 16:51:10 +01:00
Anna.Kozlova
d6b550aa66
convert to local for switch block: add decl before switch (IDEA-181440)
2017-11-21 16:51:09 +01:00
Anna.Kozlova
a3b5e864db
convert field to local: reject when field is used from javadoc (IDEA-153332)
2016-03-23 17:20:32 +01:00
Anna Kozlova
eb9b80c2d5
field can be local: restrict check for only super/this call (IDEA-152331)
2016-02-29 20:52:47 +01: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
6af1d4e49a
field can be local: group by top level blocks (IDEA-121490)
2014-03-18 20:00:56 +01:00
Anna Kozlova
c69b6261b7
convert field to local: support fields used in multiple methods (IDEA-108517)
2013-06-25 13:36:58 +04:00