flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - Removing 'redundant type cast' compiler warnings from FalconJx tests.
Date Sat, 02 Nov 2013 11:36:00 GMT
Updated Branches:
  refs/heads/develop 30655a9be -> 7297f41bd


Removing 'redundant type cast' compiler warnings from FalconJx tests.

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/7297f41b
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/7297f41b
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/7297f41b

Branch: refs/heads/develop
Commit: 7297f41bd3a6fca342f5986e11798f5af275e82a
Parents: 30655a9
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Sat Nov 2 12:35:38 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Sat Nov 2 12:35:38 2013 +0100

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/as/TestExpressions.java     | 4 ++--
 .../compiler/internal/codegen/js/goog/TestGoogExpressions.java | 4 ++--
 .../src/org/apache/flex/compiler/internal/test/ASTestBase.java | 2 +-
 .../org/apache/flex/compiler/internal/test/FlexJSTestBase.java | 4 ++--
 .../org/apache/flex/compiler/internal/test/MXMLTestBase.java   | 6 +++---
 .../src/org/apache/flex/compiler/internal/test/TestBase.java   | 2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/as/TestExpressions.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/as/TestExpressions.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/as/TestExpressions.java
index 16ec842..85fc8f5 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/as/TestExpressions.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/as/TestExpressions.java
@@ -612,7 +612,7 @@ public class TestExpressions extends ASTestBase
     @Test
     public void testVisitBinaryOperator_NamespaceAccess_1()
     {
-        INamespaceAccessExpressionNode node = (INamespaceAccessExpressionNode) getNamespaceAccessExpressionNode("a::b");
+        INamespaceAccessExpressionNode node = getNamespaceAccessExpressionNode("a::b");
         asBlockWalker.visitNamespaceAccessExpression(node);
         assertOut("a::b");
     }
@@ -620,7 +620,7 @@ public class TestExpressions extends ASTestBase
     @Test
     public void testVisitBinaryOperator_NamespaceAccess_2()
     {
-        INamespaceAccessExpressionNode node = (INamespaceAccessExpressionNode) getNamespaceAccessExpressionNode("a::b::c");
+        INamespaceAccessExpressionNode node = getNamespaceAccessExpressionNode("a::b::c");
         asBlockWalker.visitNamespaceAccessExpression(node);
         assertOut("a::b::c");
     }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/goog/TestGoogExpressions.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/goog/TestGoogExpressions.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/goog/TestGoogExpressions.java
index d984058..efcd335 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/goog/TestGoogExpressions.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/goog/TestGoogExpressions.java
@@ -173,7 +173,7 @@ public class TestGoogExpressions extends TestExpressions
     @Test
     public void testVisitBinaryOperator_NamespaceAccess_1()
     {
-        INamespaceAccessExpressionNode node = (INamespaceAccessExpressionNode) getNamespaceAccessExpressionNode("a::b");
+        INamespaceAccessExpressionNode node = getNamespaceAccessExpressionNode("a::b");
         asBlockWalker.visitNamespaceAccessExpression(node);
         assertOut("a.b");
     }
@@ -182,7 +182,7 @@ public class TestGoogExpressions extends TestExpressions
     @Test
     public void testVisitBinaryOperator_NamespaceAccess_2()
     {
-        INamespaceAccessExpressionNode node = (INamespaceAccessExpressionNode) getNamespaceAccessExpressionNode("a::b::c");
+        INamespaceAccessExpressionNode node = getNamespaceAccessExpressionNode("a::b::c");
         asBlockWalker.visitNamespaceAccessExpression(node);
         assertOut("a.b.c");
     }

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/ASTestBase.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/ASTestBase.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/ASTestBase.java
index f471fcc..56de14d 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/ASTestBase.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/ASTestBase.java
@@ -88,7 +88,7 @@ public class ASTestBase extends TestBase
         if (type.isInstance(node))
             return node;
 
-        return (IASNode) findFirstDescendantOfType(node, type);
+        return findFirstDescendantOfType(node, type);
     }
 
     protected IInterfaceNode getInterfaceNode(String code)

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/FlexJSTestBase.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/FlexJSTestBase.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/FlexJSTestBase.java
index ce25e18..6a0ca84 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/FlexJSTestBase.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/FlexJSTestBase.java
@@ -88,7 +88,7 @@ public class FlexJSTestBase extends TestBase
 
         IMXMLFileNode node = compileMXML(code);
 
-        return (IMXMLNode) findFirstDescendantOfType(node, type);
+        return findFirstDescendantOfType(node, type);
     }
 
     protected IMXMLNode findFirstDescendantOfType(IMXMLNode node,
@@ -102,7 +102,7 @@ public class FlexJSTestBase extends TestBase
             if (nodeType.isInstance(child))
                 return child;
 
-            IMXMLNode found = (IMXMLNode) findFirstDescendantOfType(child,
+            IMXMLNode found = findFirstDescendantOfType(child,
                     nodeType);
             if (found != null)
                 return found;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/MXMLTestBase.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/MXMLTestBase.java
b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/MXMLTestBase.java
index 288efc7..00e65a3 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/MXMLTestBase.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/MXMLTestBase.java
@@ -96,11 +96,11 @@ public class MXMLTestBase extends TestBase
 
             IMXMLNode cnode = findFirstDescendantOfType(pnode, type);
 
-            return (IMXMLNode) cnode;
+            return cnode;
         }
         else
         {
-            return (IMXMLNode) findFirstDescendantOfType(node, type);
+            return findFirstDescendantOfType(node, type);
         }
     }
 
@@ -115,7 +115,7 @@ public class MXMLTestBase extends TestBase
             if (nodeType.isInstance(child))
                 return child;
 
-            IMXMLNode found = (IMXMLNode) findFirstDescendantOfType(child,
+            IMXMLNode found = findFirstDescendantOfType(child,
                     nodeType);
             if (found != null)
                 return found;

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/7297f41b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
index 6a6c3a8..adc16a1 100644
--- a/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
+++ b/compiler.jx.tests/src/org/apache/flex/compiler/internal/test/TestBase.java
@@ -260,7 +260,7 @@ public class TestBase implements ITestBase
                     ASFilterWriter writer = backend.createWriterBuffer(project);
                     IASEmitter emitter = backend.createEmitter(writer);
                     IASBlockWalker walker = backend.createWalker(project,
-                            (List<ICompilerProblem>) errors, emitter);
+                            errors, emitter);
 
                     walker.visitCompilationUnit(cu);
 


Mime
View raw message