Polishing

This commit is contained in:
Sam Brannen
2018-03-30 11:35:07 +02:00
parent 986d219391
commit 2903cb7f50

View File

@@ -92,7 +92,6 @@ public class MethodParameterTests {
MethodParameter methodParameter = MethodParameter.forMethodOrConstructor(constructor, 0);
assertEquals(String.class, methodParameter.getParameterType());
assertNotNull("Failed to find @Param annotation", methodParameter.getParameterAnnotation(Param.class));
assertNotNull(methodParameter.getParameterAnnotation(Param.class));
}
@Test // SPR-16652
@@ -105,7 +104,6 @@ public class MethodParameterTests {
methodParameter = MethodParameter.forMethodOrConstructor(constructor, 1);
assertEquals(String.class, methodParameter.getParameterType());
// The following assertion currently fails if this test class is compiled using JDK 8.
assertNotNull("Failed to find @Param annotation", methodParameter.getParameterAnnotation(Param.class));
methodParameter = MethodParameter.forMethodOrConstructor(constructor, 2);