summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahaase2008-02-20 17:28:32 (EST)
committer ahaase2008-02-20 17:28:32 (EST)
commita94dacdad3660e5901ea110055052ad52d6360f0 (patch)
treef5f3beb83015b49524d9f59c1676a443d2299ce4
parent3e19503cf7838d23ed6fa4f6cf506a86592a34d1 (diff)
downloadorg.eclipse.xpand-a94dacdad3660e5901ea110055052ad52d6360f0.zip
org.eclipse.xpand-a94dacdad3660e5901ea110055052ad52d6360f0.tar.gz
org.eclipse.xpand-a94dacdad3660e5901ea110055052ad52d6360f0.tar.bz2
cleaned up the code
-rw-r--r--plugins/org.eclipse.xtend.middleend.old/src/org/eclipse/xtend/middleend/old/OldTypeAnalyzer.java2
-rw-r--r--tests/org.eclipse.xtend.backend.test/src/org/eclipse/xtend/backend/expr/InvocationOnWhateverExpressionTest.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.xtend.middleend.old/src/org/eclipse/xtend/middleend/old/OldTypeAnalyzer.java b/plugins/org.eclipse.xtend.middleend.old/src/org/eclipse/xtend/middleend/old/OldTypeAnalyzer.java
index 78239d0..afc0dad 100644
--- a/plugins/org.eclipse.xtend.middleend.old/src/org/eclipse/xtend/middleend/old/OldTypeAnalyzer.java
+++ b/plugins/org.eclipse.xtend.middleend.old/src/org/eclipse/xtend/middleend/old/OldTypeAnalyzer.java
@@ -157,7 +157,7 @@ public class OldTypeAnalyzer {
return ctx.getListType (innerType);
}
- private Type analyzeOperationCall (ExecutionContext ctx, OperationCall expr) {
+ private Type analyzeOperationCall (ExecutionContext ctx, @SuppressWarnings("unused") OperationCall expr) {
return ctx.getObjectType();
// it would require extreme effort to find matching extensions etc. because we do not know
diff --git a/tests/org.eclipse.xtend.backend.test/src/org/eclipse/xtend/backend/expr/InvocationOnWhateverExpressionTest.java b/tests/org.eclipse.xtend.backend.test/src/org/eclipse/xtend/backend/expr/InvocationOnWhateverExpressionTest.java
index dd045be..903ddf6 100644
--- a/tests/org.eclipse.xtend.backend.test/src/org/eclipse/xtend/backend/expr/InvocationOnWhateverExpressionTest.java
+++ b/tests/org.eclipse.xtend.backend.test/src/org/eclipse/xtend/backend/expr/InvocationOnWhateverExpressionTest.java
@@ -28,7 +28,8 @@ import org.junit.Test;
* @author Arno Haase (http://www.haase-consulting.com)
*/
public class InvocationOnWhateverExpressionTest {
- @Test public void testInvocationOnObject () {
+ @SuppressWarnings("unchecked")
+ @Test public void testInvocationOnObject () {
assertEquals (3L, new InvocationOnWhateverExpression ("operatorPlus", Arrays.asList (createLiteral (1L), createLiteral (2L)), false, SOURCE_POS).evaluate (createEmptyExecutionContext ()));
assertEquals (3L, new InvocationOnWhateverExpression ("operatorPlus", Arrays.asList (createLiteral (1L), createLiteral (2L)), true, SOURCE_POS).evaluate (createEmptyExecutionContext ()));
assertEquals (Arrays.asList (1L), new InvocationOnWhateverExpression ("toList", Arrays.asList (createLiteral (Arrays.asList(1L))), false, SOURCE_POS).evaluate (createEmptyExecutionContext()));