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

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

@shaunsmith

Description

@shaunsmith

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions