commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r730871 - in /commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml: SCXMLHelperTest.java io/SCXMLSerializerTest.java model/StateTest.java semantics/TransitionTargetComparatorTest.java
Date Fri, 02 Jan 2009 23:49:15 GMT
Author: sebb
Date: Fri Jan  2 15:49:14 2009
New Revision: 730871

URL: http://svn.apache.org/viewvc?rev=730871&view=rev
Log:
Remove unnecessary casts

Modified:
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/model/StateTest.java
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java?rev=730871&r1=730870&r2=730871&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLHelperTest.java
Fri Jan  2 15:49:14 2009
@@ -147,8 +147,8 @@
         State state2 = new State();
         state2.setId("2");
         
-        parent.addChild((TransitionTarget) state1);
-        parent.addChild((TransitionTarget) state2);
+        parent.addChild(state1);
+        parent.addChild(state2);
         
         parallel.setParent(parent);
         

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java?rev=730871&r1=730870&r2=730871&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/io/SCXMLSerializerTest.java
Fri Jan  2 15:49:14 2009
@@ -360,7 +360,7 @@
         State s11 = new State();
         s11.setId("S11");
 
-        s1.addChild((TransitionTarget)s11);
+        s1.addChild(s11);
 
         State s2 = new State();
         s2.setId("S2");
@@ -368,10 +368,10 @@
         State s21 = new State();
         s21.setId("S21");
 
-        s2.addChild((TransitionTarget)s21);
+        s2.addChild(s21);
 
-        par.addChild((TransitionTarget)s1);
-        par.addChild((TransitionTarget)s2);
+        par.addChild(s1);
+        par.addChild(s2);
 
         scxml.addChild(par);
 

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/model/StateTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/model/StateTest.java?rev=730871&r1=730870&r2=730871&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/model/StateTest.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/model/StateTest.java
Fri Jan  2 15:49:14 2009
@@ -133,7 +133,7 @@
         
         // redundant cast to remove deprecation warning
         // could be removed in v1.0
-        state.addChild((TransitionTarget) state1);
+        state.addChild(state1);
         
         assertFalse(state.isSimple());
     }
@@ -145,7 +145,7 @@
     public void testIsCompositeParallel() {
         State child = new State();
         
-        state.addChild((TransitionTarget) child);
+        state.addChild(child);
         
         assertTrue(state.isComposite());
     }
@@ -155,7 +155,7 @@
         
         // redundant cast to remove deprecation warning
         // could be removed in v1.0
-        state.addChild((TransitionTarget) state1);
+        state.addChild(state1);
         
         assertTrue(state.isComposite());
     }

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java?rev=730871&r1=730870&r2=730871&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/semantics/TransitionTargetComparatorTest.java
Fri Jan  2 15:49:14 2009
@@ -108,11 +108,11 @@
         State target1 = new State();
         Parallel parent = new Parallel();
         target1.setParent(parent);
-        parent.addChild((TransitionTarget) target1);
+        parent.addChild(target1);
         
         State target2 = new State();
         target2.setParent(parent);
-        parent.addChild((TransitionTarget) target2);
+        parent.addChild(target2);
         
         assertEquals(1, comparator.compare(target1, target2));
     }



Mime
View raw message