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

src.samples.java.ex.NCMU_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.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

@SuppressWarnings("all")
public class NCMU_Sample {
    public void test(Vector v, Hashtable ht) {
        if (ht.contains("test")) {
            Enumeration e = ht.elements();
            if (e.equals(ht.keys()))
                return;
        }

        v.addElement("test");
        String s = (String) v.elementAt(0);
        v.insertElementAt("test", 0);
        v.removeAllElements();
        v.removeElement("test");
        v.removeElementAt(0);
        v.setElementAt("test", 0);

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy