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