google / google/error-prone

`UnnecessaryQualifier` outputs warnings for qualifier annotations copied by lombok

Open
#5,128 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Not sure if this is feasible to address, but e.g. with lombok you can do

```
@RequiredArgsConstructor
class MyClass {

@SpecialString final String injectedString;
}
```

and configure it to copy `@SpecialString` to the generated constructor's parameter. at the moment errorprone is warning about the qualifier on the injected field, but there's nowhere else to put it in lombok land.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.