Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Field "can be final" quickfix puts "final" in wrong place. #5

Open
shaunsmith opened this issue Feb 19, 2021 · 0 comments
Open

Field "can be final" quickfix puts "final" in wrong place. #5

shaunsmith opened this issue Feb 19, 2021 · 0 comments

Comments

@shaunsmith
Copy link

Apache NetBeans Language Server: 12.2.2
GraalVM Extension: 0.5.4

When seeing this warning: "Field brandId can be final" with full details below, and selecting the "Make final" quick fix the "final" keyword is not inserted into the correct position. It inserts at the cursor position sometimes, and sometimes in between the type and field name. E.g., "private String final foo".

{
"resource": "/Users/shaun/git/github/shaunsmith/comics/src/main/java/org/comics/model/Issue.java",
"owner": "generated_diagnostic_collection_name#2",
"code": "hints:0-text/x-java:org.netbeans.modules.java.hints.threading.Tiny.canBeFinal",
"severity": 4,
"message": "Field brandId can be final",
"startLineNumber": 103,
"startColumn": 22,
"endLineNumber": 103,
"endColumn": 29
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant