src.samples.java.ex.NIR_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.
package ex;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
@SuppressWarnings("all")
public class NIR_Sample extends JFrame {
public static final int NIR_VALUE = 1;
public NIR_Sample getSample() {
return this;
}
public void test1() {
System.out.println(getSample().NIR_VALUE);
}
public void test2() {
System.out.println(getColorModel().TRANSLUCENT);
}
public void test3() {
getSample().staticMethod();
}
public void fpStacked() {
JButton ok = new JButton("ok");
JButton cancel = new JButton("cancel");
JPanel p = new JPanel();
p.add(ok);
p.add(cancel);
}
public static void staticMethod() {
}
}