You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Since PMD 7 I have a FinalFieldCouldBeStatic violation, that I can not make final at all as it causes a compiler issue.
Code Sample demonstrating the issue:
It is a bit more complex setup, so I only show parts of it, if you want more or all the code let me know
classJKFlipFlopTestsextendsFlipFlopTests<JKFlipFlop> {
@Nestedclassj_k_flip_flop_clock {
privatefinalJKFlipFlopflipFlop = JKFlipFlopTests.super.flipFlop; // <-- Here is the issue
Expected outcome:
This can not be static so there should be no violation
[INFO] PMD Failure: works.reload.relogic.logic.emitter.disruptor.sequential.j_k_flip_flop_clock:60 Rule:FinalFieldCouldBeStatic Priority:3 This final field could be made static.
Running PMD through:Maven
The text was updated successfully, but these errors were encountered:
Affects PMD Version: 7.1.0
Rule: FinalFieldCouldBeStatic
Description:
Since PMD 7 I have a FinalFieldCouldBeStatic violation, that I can not make final at all as it causes a compiler issue.
Code Sample demonstrating the issue:
It is a bit more complex setup, so I only show parts of it, if you want more or all the code let me know
Expected outcome:
This can not be static so there should be no violation
[INFO] PMD Failure: works.reload.relogic.logic.emitter.disruptor.sequential.j_k_flip_flop_clock:60 Rule:FinalFieldCouldBeStatic Priority:3 This final field could be made static.
Running PMD through: Maven
The text was updated successfully, but these errors were encountered: