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