Thread: [Fb-contrib-commit] SF.net SVN: fb-contrib:[1197] trunk/fb-contrib/samples/SMA_Sample.java
Brought to you by:
dbrosius
From: <dbr...@us...> - 2009-05-09 22:48:35
|
Revision: 1197 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1197&view=rev Author: dbrosius Date: 2009-05-09 22:48:28 +0000 (Sat, 09 May 2009) Log Message: ----------- add check for java/util/Map:put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; Modified Paths: -------------- trunk/fb-contrib/samples/SMA_Sample.java Modified: trunk/fb-contrib/samples/SMA_Sample.java =================================================================== --- trunk/fb-contrib/samples/SMA_Sample.java 2009-05-09 22:48:08 UTC (rev 1196) +++ trunk/fb-contrib/samples/SMA_Sample.java 2009-05-09 22:48:28 UTC (rev 1197) @@ -1,4 +1,7 @@ +import java.util.HashMap; +import java.util.Map; + public class SMA_Sample { public void testSMA(SMA_Sample s1, SMA_Sample s2) @@ -11,4 +14,11 @@ { testNonReport(4, 4); } + + public void testSMAFPMaps(Integer i) + { + Map<Integer, Integer> m = new HashMap<Integer, Integer>(); + + m.put(i, i); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2009-05-09 23:17:06
|
Revision: 1198 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1198&view=rev Author: dbrosius Date: 2009-05-09 23:17:00 +0000 (Sat, 09 May 2009) Log Message: ----------- add fp Modified Paths: -------------- trunk/fb-contrib/samples/SMA_Sample.java Modified: trunk/fb-contrib/samples/SMA_Sample.java =================================================================== --- trunk/fb-contrib/samples/SMA_Sample.java 2009-05-09 22:48:28 UTC (rev 1197) +++ trunk/fb-contrib/samples/SMA_Sample.java 2009-05-09 23:17:00 UTC (rev 1198) @@ -4,6 +4,8 @@ public class SMA_Sample { + SMA_Sample proto; + public void testSMA(SMA_Sample s1, SMA_Sample s2) { if (!s1.equals(s2)) @@ -21,4 +23,10 @@ m.put(i, i); } + + public void testFPTwoInstances(SMA_Sample other) + { + testSMA(proto, proto.proto); + + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2009-05-10 00:02:06
|
Revision: 1201 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1201&view=rev Author: dbrosius Date: 2009-05-10 00:01:59 +0000 (Sun, 10 May 2009) Log Message: ----------- filter out primities Modified Paths: -------------- trunk/fb-contrib/samples/SMA_Sample.java Modified: trunk/fb-contrib/samples/SMA_Sample.java =================================================================== --- trunk/fb-contrib/samples/SMA_Sample.java 2009-05-10 00:01:44 UTC (rev 1200) +++ trunk/fb-contrib/samples/SMA_Sample.java 2009-05-10 00:01:59 UTC (rev 1201) @@ -27,6 +27,11 @@ public void testFPTwoInstances(SMA_Sample other) { testSMA(proto, proto.proto); - } + + public void testFPPrimitives(float f, float f2) + { + if (f != f2) + testFPPrimitives(f, f); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2009-05-10 15:22:47
|
Revision: 1206 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1206&view=rev Author: dbrosius Date: 2009-05-10 15:22:44 +0000 (Sun, 10 May 2009) Log Message: ----------- add overloaded method check Modified Paths: -------------- trunk/fb-contrib/samples/SMA_Sample.java Modified: trunk/fb-contrib/samples/SMA_Sample.java =================================================================== --- trunk/fb-contrib/samples/SMA_Sample.java 2009-05-10 15:22:28 UTC (rev 1205) +++ trunk/fb-contrib/samples/SMA_Sample.java 2009-05-10 15:22:44 UTC (rev 1206) @@ -1,3 +1,5 @@ +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; import java.util.HashMap; import java.util.Map; @@ -2,15 +4,14 @@ -public class SMA_Sample +public class SMA_Sample implements ActionListener { SMA_Sample proto; - public void testSMA(SMA_Sample s1, SMA_Sample s2) + public void testSMA(SMA_Sample s1) { - if (!s1.equals(s2)) - testSMA(s1, s1); + doubleSMAs(s1, s1); } public void testNonReport(int a, int b) { - testNonReport(4, 4); + doubleInts(4, 4); } @@ -26,12 +27,39 @@ public void testFPTwoInstances(SMA_Sample other) { - testSMA(proto, proto.proto); + doubleSMAs(proto, proto.proto); } - public void testFPPrimitives(float f, float f2) + public void testFPPrimitives(int i) { - if (f != f2) - testFPPrimitives(f, f); + doubleInts(i, i); } + + public void testMultiTypes(SMA_Sample a) + { + twoInfs(a, a); + } + + public void doubleInts(int i, int j) + { + } + + public void doubleSMAs(SMA_Sample s) + { + doubleSMAs(s, s); + } + + public void doubleSMAs(SMA_Sample s1, SMA_Sample s2) + { + + } + + public void twoInfs(SMA_Sample a, ActionListener al) + { + + } + + public void actionPerformed(ActionEvent ae) + { + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |