All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.samples.java.ex.CCNE_Sample Maven / Gradle / Ivy

Go to download

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 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");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy