src.samples.java.ex.CCNE_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;
public class CCNE_Sample {
public void compareClassEquals() {
Object o = new CCNE_Sample();
Object p = new CCNE_Sample();
System.out.println(o.getClass().getName().equals(p.getClass().getName()));
}
public void fpCompareAgainstString(String name) {
Object o = new CCNE_Sample();
if (o.getClass().getName().equals(name))
System.out.println("booya");
}
}