Skip to content

Commit 897aab9

Browse files
committed
Added missing imports.
Added additional annotation to test interface to make sure no ClassCastException appears.
1 parent a383633 commit 897aab9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

org.springframework.core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@
1919
import static org.junit.Assert.*;
2020
import static org.springframework.core.annotation.AnnotationUtils.*;
2121

22+
import java.io.Serializable;
23+
import java.lang.annotation.ElementType;
2224
import java.lang.annotation.Inherited;
2325
import java.lang.annotation.Retention;
2426
import java.lang.annotation.RetentionPolicy;
27+
import java.lang.annotation.Target;
2528
import java.lang.reflect.Method;
29+
import java.util.List;
2630

2731
import org.junit.Test;
2832
import org.springframework.core.Ordered;
33+
import org.springframework.core.annotation.AnnotationUtils.ParameterAnnotation;
2934

3035
/**
3136
* @author Rod Johnson
@@ -364,7 +369,8 @@ public static interface InterfaceWithAnnotatedMethodParameters {
364369

365370
void foo(String foo, @MyAnnotation("foo") Long bar);
366371

367-
void bar(@MyAnnotation("first") String first, String second, @MyAnnotation("third") Serializable third);
372+
void bar(@MyAnnotation("first") String first, String second,
373+
@Transactional @MyAnnotation("third") Serializable third);
368374
}
369375
}
370376

0 commit comments

Comments
 (0)