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

View File

@ -2530,6 +2530,7 @@ public class SpelCompilationCoverageTests extends AbstractExpressionTests {
} }
} }
@SuppressWarnings("serial")
public static class MessageHeaders extends HashMap<String,Object> { } public static class MessageHeaders extends HashMap<String,Object> { }
public static class GenericMessageTestHelper<T> { public static class GenericMessageTestHelper<T> {

View File

@ -53,8 +53,8 @@ import org.springframework.context.ConfigurableApplicationContext;
* The term <em>annotated class</em> can refer to any of the following. * The term <em>annotated class</em> can refer to any of the following.
* *
* <ul> * <ul>
* <li>A class annotated with {@link org.springframework.context.annotation.Configuration * <li>A class annotated with @{@link org.springframework.context.annotation.Configuration
* @Configuration}</li> * Configuration}</li>
* <li>A component (i.e., a class annotated with * <li>A component (i.e., a class annotated with
* {@link org.springframework.stereotype.Component @Component}, * {@link org.springframework.stereotype.Component @Component},
* {@link org.springframework.stereotype.Service @Service}, * {@link org.springframework.stereotype.Service @Service},

View File

@ -114,7 +114,7 @@ import static org.springframework.core.annotation.AnnotationUtils.*;
* {@link org.springframework.transaction.annotation.TransactionManagementConfigurer TransactionManagementConfigurer} * {@link org.springframework.transaction.annotation.TransactionManagementConfigurer TransactionManagementConfigurer}
* can be implemented by an * can be implemented by an
* {@link org.springframework.context.annotation.Configuration @Configuration} * {@link org.springframework.context.annotation.Configuration @Configuration}
* class. See {@link TestContextTransactionUtils#retrieveTransactionManager()} * class. See {@link TestContextTransactionUtils#retrieveTransactionManager}
* for details on the algorithm used to look up a transaction manager in * for details on the algorithm used to look up a transaction manager in
* the test's {@code ApplicationContext}. * the test's {@code ApplicationContext}.
* *