Fix some warning

master
Stephane Nicoll 10 years ago
parent e010309530
commit 0b2c0cfb4f
  1. 4
      spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java
  2. 3
      spring-expression/src/test/java/org/springframework/expression/spel/SpelCompilationCoverageTests.java
  3. 4
      spring-test/src/main/java/org/springframework/test/context/ContextConfiguration.java
  4. 2
      spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java

@ -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();

@ -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> {

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

@ -114,7 +114,7 @@ import static org.springframework.core.annotation.AnnotationUtils.*;
* {@link org.springframework.transaction.annotation.TransactionManagementConfigurer TransactionManagementConfigurer}
* can be implemented by an
* {@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
* the test's {@code ApplicationContext}.
*

Loading…
Cancel
Save