Skip to content

[bean completion proposals] need to polish result when invoking autowire bean completion inside of constructor #1484

Closed
@martinlippert

Description

@martinlippert

I have a standard constructor and I am trying to use the autowire bean completion proposals:

public MyController() {
    this.<*>
}

The proposals show up nicely. However, the result of applying the proposal could be slightly improved:

public MyController(TestBean1 testBean1) {
    this.testBean1

    this.testBean1 = testBean1;}

Here is what could be improved:

public MyController(TestBean1 testBean1) {
    this.testBean1                   <== this line is not necessary in this case

    this.testBean1 = testBean1;}      <==   the closing bracket should be on the next line and the cursor should be at the end of this line I think

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions