-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
for: eclipsesomething that is specific for Eclipsesomething that is specific for Eclipsefor: vscodesomething that is specific for VSCodesomething that is specific for VSCodetheme: validationtype: enhancement
Milestone
Description
The validation that marks unnecessary name attributes in certain web annotations (like @RequestParam
or @PathVariable
) underlines the whole annotation section of the code at the moment, creating the impression that the full annotation statement is not necessary, whereas the attribute about the name is the only piece of the annotation that could be removed.
Instead of marking the complete annotation statement, the validation should only mark the name attribute definition.
Example
public Owner findOwner(@PathVariable(name = "ownerId", required = false) Integer ownerId) {
|-----------------------------------------------|
whereas the marker should only be positioned below the name = "ownerId"
:
public Owner findOwner(@PathVariable(name = "ownerId", required = false) Integer ownerId) {
|--------------|
Metadata
Metadata
Assignees
Labels
for: eclipsesomething that is specific for Eclipsesomething that is specific for Eclipsefor: vscodesomething that is specific for VSCodesomething that is specific for VSCodetheme: validationtype: enhancement