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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy