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

src.samples.java.ex.URV_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.

There is a newer version: 7.6.8
Show newest version
package ex;
import java.util.HashSet;
import java.util.TreeSet;

@SuppressWarnings("all")
public class URV_Sample extends URV_Super {
    public Object getASet(boolean b) {
        if (b)
            return new HashSet();
        else
            return new TreeSet();
    }

    public Object getInfo(boolean b) {
        if (b)
            return new String[4];
        else
            return "";
    }

    @Override
    public Object getInheritedInfo(boolean b) {
        if (b)
            return new Integer(1);
        else
            return new Float(1.0);
    }
}

class URV_Super {
    public Object getInheritedInfo(boolean b) {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy