提交 0b2c0cfb 编写于 作者: S Stephane Nicoll

Fix some warning

上级 e0103095
......@@ -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}.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册