src.samples.java.ex.SCA_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.ArrayList;
import java.util.List;
public class SCA_Sample implements Cloneable {
private List names = new ArrayList();
@Override
public Object clone() throws CloneNotSupportedException {
SCA_Sample s = (SCA_Sample) super.clone();
names = new ArrayList();
s.names.addAll(names);
names.add("New");
return s;
}
}