Revision: 1147
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1147&view=rev
Author: dbrosius
Date: 2009-03-17 05:41:35 +0000 (Tue, 17 Mar 2009)
Log Message:
-----------
add fp test
Modified Paths:
--------------
trunk/fb-contrib/samples/BAS_Sample.java
Modified: trunk/fb-contrib/samples/BAS_Sample.java
===================================================================
--- trunk/fb-contrib/samples/BAS_Sample.java 2009-03-16 04:12:15 UTC (rev 1146)
+++ trunk/fb-contrib/samples/BAS_Sample.java 2009-03-17 05:41:35 UTC (rev 1147)
@@ -1,3 +1,4 @@
+import java.util.Calendar;
import java.util.List;
import java.util.Set;
@@ -27,9 +28,13 @@
{
Object o = new Object();
if (s.equals("Boo"))
- s = o.toString();
- else if (s.equals("Hoo"))
- s = o.toString();
+ {
+ s = o.toString();
+ }
+ else if (s.equals("Hoo"))
+ {
+ s = o.toString();
+ }
return s;
}
@@ -40,9 +45,13 @@
if (s != null)
{
if (s.equals("Boo"))
- s = o.toString();
- else if (s.equals("Hoo"))
- s = o.toString();
+ {
+ s = o.toString();
+ }
+ else if (s.equals("Hoo"))
+ {
+ s = o.toString();
+ }
}
return s;
@@ -104,5 +113,18 @@
d = c;
}
}
+
+ public int testFPObjChange(Calendar c, boolean b)
+ {
+ int hour = c.get(Calendar.HOUR_OF_DAY);
+ c.set(2000, Calendar.JANUARY, 1);
+
+ if (b)
+ {
+ return hour;
+ }
+
+ return 0;
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|