Fix some warning

This commit is contained in:
Stephane Nicoll
2014-08-07 15:44:39 +02:00
parent e010309530
commit 0b2c0cfb4f
4 changed files with 9 additions and 4 deletions

View File

@@ -312,6 +312,7 @@ public class IndexingTests {
assertEquals("", expression.getValue(this, String.class));
}
@SuppressWarnings("unchecked")
@Test
public void resolveCollectionElementType() {
listNotGeneric = new ArrayList(2);
@@ -339,6 +340,7 @@ public class IndexingTests {
}
@SuppressWarnings("unchecked")
@Test
public void resolveMapKeyValueTypes() {
mapNotGeneric = new HashMap();
@@ -352,6 +354,7 @@ public class IndexingTests {
@FieldAnnotation
public Map mapNotGeneric;
@SuppressWarnings("unchecked")
@Test
public void testListOfScalar() {
listOfScalarNotGeneric = new ArrayList(1);
@@ -364,6 +367,7 @@ public class IndexingTests {
public List listOfScalarNotGeneric;
@SuppressWarnings("unchecked")
@Test
public void testListsOfMap() {
listOfMapsNotGeneric = new ArrayList();

View File

@@ -2529,7 +2529,8 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
return 1;
}
}
@SuppressWarnings("serial")
public static class MessageHeaders extends HashMap<String,Object> { }
public static class GenericMessageTestHelper<T> {