
src.samples.java.ex.PCOA_Sample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fb-contrib Show documentation
Show all versions of fb-contrib Show documentation
An auxiliary findbugs.sourceforge.net plugin for java bug detectors that fall outside the narrow scope of detectors to be packaged with the product itself.
The newest version!
package ex;
public class PCOA_Sample {
public PCOA_Sample() {
overridableMethod();
}
public PCOA_Sample(int ok) {
nonOverridableMethod();
}
public PCOA_Sample(String ok) {
// on jdk 8 this is INVOKESPECIAL, on jdk11 it's invokevirtual
privateNonFinalMethod();
}
public PCOA_Sample(long privateCallsOverridable) {
privateCallsOverridable();
}
public void overridableMethod() {
}
private void privateNonFinalMethod() {
}
public final void nonOverridableMethod() {
}
private void privateCallsOverridable() {
overridableMethod();
}
final static class FinalClass {
public FinalClass() {
aMethod();
}
public void aMethod() {
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy