Update of /cvsroot/fb-contrib/fb-contrib/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10418/samples
Added Files:
USBR_Sample.java
Log Message:
initial checkin - USBR detector
--- NEW FILE: USBR_Sample.java ---
import edu.umd.cs.findbugs.BytecodeScanningDetector;
import edu.umd.cs.findbugs.StatelessDetector;
public class USBR_Sample
{
public int addEm(String csl)
{
String[] tokens = csl.split(",");
int sum = 0;
for (String s : tokens)
{
sum += Integer.valueOf(s);
}
int ave = sum / tokens.length;
return ave;
}
}
|