src.samples.java.ex.ITU_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.List;
public class ITU_Sample {
List l;
public String processList() {
return l.toString().substring(0, 10);
}
public String processList2() {
String s = l.toString();
if (s != null) {
return s.substring(0, 10);
}
return null;
}
public String ignore() {
return toString().substring(0, 1);
}
@Override
public String toString() {
return "1 1";
}
}