Revision: 1083
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1083&view=rev
Author: dbrosius
Date: 2009-01-20 03:52:10 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
Fix bug 2520040 - don't report store and returns on catch variables
Modified Paths:
--------------
trunk/fb-contrib/samples/USBR_Sample.java
Modified: trunk/fb-contrib/samples/USBR_Sample.java
===================================================================
--- trunk/fb-contrib/samples/USBR_Sample.java 2009-01-20 03:48:54 UTC (rev 1082)
+++ trunk/fb-contrib/samples/USBR_Sample.java 2009-01-20 03:52:10 UTC (rev 1083)
@@ -7,7 +7,7 @@
int sum = 0;
for (String s : tokens)
{
- sum += Integer.valueOf(s);
+ sum += Integer.parseInt(s);
}
int ave = sum / tokens.length;
@@ -28,4 +28,17 @@
}
return i;
}
+
+ public Exception fpReturnException(String num)
+ {
+ try
+ {
+ int i = Integer.parseInt(num);
+ return null;
+ }
+ catch (Exception e)
+ {
+ return e;
+ }
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|