[Fb-contrib-commit] SF.net SVN: fb-contrib:[1461] trunk/fb-contrib/samples/PDP_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-10 17:04:38
|
Revision: 1461
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1461&view=rev
Author: dbrosius
Date: 2010-01-10 17:04:32 +0000 (Sun, 10 Jan 2010)
Log Message:
-----------
add tableswitch
Modified Paths:
--------------
trunk/fb-contrib/samples/PDP_Sample.java
Modified: trunk/fb-contrib/samples/PDP_Sample.java
===================================================================
--- trunk/fb-contrib/samples/PDP_Sample.java 2010-01-10 17:01:50 UTC (rev 1460)
+++ trunk/fb-contrib/samples/PDP_Sample.java 2010-01-10 17:04:32 UTC (rev 1461)
@@ -57,7 +57,7 @@
return s;
}
- public String testFPFlimsySwitchGuard(Comparable<?> c, int type) {
+ public String testFPTableSwitchGuard(Comparable<?> c, int type) {
String s = c.toString();
switch (type)
@@ -70,6 +70,22 @@
case 1:
s += s;
break;
+
+ case 2:
+ s += "0";
+ break;
+
+ case 3:
+ s +='3';
+ break;
+
+ case 4:
+ s = null;
+ break;
+
+ case 5:
+ s = s.substring(0, 1);
+ break;
}
return s;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|