Skip to content

Commit 34d2ad7

Browse files
committed
Convert the annotations to their kotlin equivalents.
1 parent 373e080 commit 34d2ad7

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

atplug-runtime/src/main/java/com/diffplug/atplug/Metadata.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
package com.diffplug.atplug
88

99
import java.lang.annotation.Documented
10-
import java.lang.annotation.Retention
11-
import java.lang.annotation.RetentionPolicy
1210

1311
/** Marks that a method is used to generate metadata, and should therefore return a constant. */
1412
@Documented
15-
@Retention(RetentionPolicy.SOURCE)
13+
@kotlin.annotation.Retention(AnnotationRetention.SOURCE)
1614
@Target(
1715
AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
1816
annotation class Metadata

atplug-runtime/src/main/java/com/diffplug/atplug/Plug.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@
66
*/
77
package com.diffplug.atplug
88

9-
import java.lang.annotation.Retention
10-
import java.lang.annotation.RetentionPolicy
119
import kotlin.reflect.KClass
1210

13-
/**
14-
* Annotation which signals that this class implements the given socket.
15-
*
16-
* We should name this autOSGi
17-
*/
18-
@Retention(RetentionPolicy.CLASS)
11+
/** Annotation which signals that this class implements the given socket. */
12+
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
1913
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS)
2014
annotation class Plug(
2115
/** Socket type which this plug implements. */

0 commit comments

Comments
 (0)