src.samples.java.ex.UMTP_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.HashMap;
import java.util.Map;
public class UMTP_Sample {
public C getT(String s, int i, Class cls) {
T t = (T) getFoo();
System.out.println(t);
return (C) new Object();
}
public String fpUseClass(T t) {
return t.toString();
}
public String fpUseClass(Class c) {
return c.getName().toString();
}
public String fpUseArray(T[] t) {
return t[0].toString();
}
private Map fpKVReverseMap(Map map) {
Map m = new HashMap();
for (Map.Entry entry : map.entrySet()) {
m.put(entry.getValue(), entry.getKey());
}
return m;
}
public void fpEmbedded(Map> x) {
}
public void fpParentRestriction(Iterable source, Map target) {
}
public Object getFoo() {
return null;
}
}