Minor, change annotation in test data

To fix this case in an upcoming test which adds retention(runtime) to all
annotations (which resulted in duplicate annotation here)
This commit is contained in:
Alexander Udalov
2014-10-30 17:46:45 +03:00
parent ae3c17d399
commit be08e33463
2 changed files with 10 additions and 3 deletions
@@ -1,11 +1,13 @@
package test;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public interface EnumInParam {
public @interface MyRetention {
RetentionPolicy value();
}
@Retention(RetentionPolicy.RUNTIME)
@MyRetention(RetentionPolicy.RUNTIME)
public @interface RetentionAnnotation {
String value();
}
@@ -2,7 +2,12 @@ package test
public trait EnumInParam {
java.lang.annotation.Retention(value = RetentionPolicy.RUNTIME: java.lang.annotation.RetentionPolicy) public final annotation class RetentionAnnotation : kotlin.Annotation {
public final annotation class MyRetention : kotlin.Annotation {
public constructor MyRetention(/*0*/ value: java.lang.annotation.RetentionPolicy)
public abstract fun value(): java.lang.annotation.RetentionPolicy
}
test.EnumInParam.MyRetention(value = RetentionPolicy.RUNTIME: java.lang.annotation.RetentionPolicy) public final annotation class RetentionAnnotation : kotlin.Annotation {
public constructor RetentionAnnotation(/*0*/ value: kotlin.String)
public abstract fun value(): kotlin.String
}