error-prone
error-prone copied to clipboard
`UnnecessaryQualifier` outputs warnings for qualifier annotations copied by lombok
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.
Another example:
@RequiredArgsConstructor(onConstructor_ = @Inject, access = AccessLevel.PROTECTED)
public final class FooDeleter
{
@Deleted
private final Event<Foo> fooDeletedEvent;
public void delete(int connectionId)
{
// ...
}
}