Rule S1170 raises a false positive when initialization is done with `this`.
public abstract class C { private final C c = this; // FP private final int i = super.foo; // FP private final String s = "abcdef"; // Correctly raise an issue! }
- implements
-
RSPEC-1170 Public constants and fields initialized at declaration should be "static final" rather than merely "final"
- Active
- links to