Bart van Helvert
07e6ec4678
[java-inspections] IJ-CR-27871 Introduce local variable in preview
...
GitOrigin-RevId: 1d9b8d6e4acab1a48e99370cf8a296e84309d7f2
2022-08-09 11:36:04 +00:00
Bart van Helvert
ed388efc1a
[java-inspections] IDEA-298787 Add preview to 'ConvertFieldToLocalQuickFix'
...
GitOrigin-RevId: b8b06b05c9c3fbb8111f3caded9a6a2f5d3e911f
2022-07-29 14:24:14 +00:00
Bart van Helvert
57b3e68b1b
[java-inspections] IDEA-298539 Fix parameter can be local quick-fix undo
...
Also makes it so refactoring isn't called in write action and won't cause deadlocks.
GitOrigin-RevId: 204fd9f9a0b2e942b1c9eb56b3d9938b2666d123
2022-07-29 14:24:01 +00:00
Tagir Valeev
8560c6a5d1
[java-inspections] More preview tests
...
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
2022-07-27 10:00:31 +00:00
Artemiy Sartakov
043c2d563e
Field can be local: added support for nested and local classes (IDEA-206647)
2019-02-07 17:27:00 +07:00
Artemiy Sartakov
1b87c1a508
ConvertToLocalInspection: changed quick-fix to explicitly show type of code block where field is used (IDEA-CR-42222)
2019-02-05 13:26:10 +07:00
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