Affects PMD Version: 6.46.0
Rule: ImmutableField
Description: Fields that are annotated using the javax.inject.Inject annotation should not be final. However, a violation suggesting as much is still triggered.
Code Sample demonstrating the issue:
public abstract class AbstractDapiProcess implements Process {
@Inject private AuthenticationService authService;
Expected outcome: No violation
PMD reports a violation at line 2 but that's wrong. That's a false positive.
Running PMD through: CLI
Affects PMD Version: 6.46.0
Rule: ImmutableField
Description: Fields that are annotated using the
javax.inject.Injectannotation should not be final. However, a violation suggesting as much is still triggered.Code Sample demonstrating the issue:
Expected outcome: No violation
PMD reports a violation at line 2 but that's wrong. That's a false positive.
Running PMD through: CLI