Update of /cvsroot/fb-contrib/fb-contrib/samples
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6235/samples
Modified Files:
USBR_Sample.java
Log Message:
add a possible false positive
Index: USBR_Sample.java
===================================================================
RCS file: /cvsroot/fb-contrib/fb-contrib/samples/USBR_Sample.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- USBR_Sample.java 3 Dec 2005 16:46:47 -0000 1.1
+++ USBR_Sample.java 28 Feb 2006 02:06:10 -0000 1.2
@@ -1,5 +1,3 @@
-import edu.umd.cs.findbugs.BytecodeScanningDetector;
-import edu.umd.cs.findbugs.StatelessDetector;
public class USBR_Sample
{
@@ -15,4 +13,19 @@
int ave = sum / tokens.length;
return ave;
}
+
+ public int dontReport(int j)
+ {
+ int i;
+ try
+ {
+ i = 0;
+ i = i / j;
+ }
+ catch (Exception e)
+ {
+ i = -1;
+ }
+ return i;
+ }
}
|