Skip to content

Commit 18e1edd

Browse files
committed
source retention for component and provides
1 parent ab4d42e commit 18e1edd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

simple-component/src/main/java/io/jbock/simple/Component.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.lang.annotation.Target;
55

66
import static java.lang.annotation.ElementType.TYPE;
7-
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7+
import static java.lang.annotation.RetentionPolicy.SOURCE;
88

99
/**
1010
* Annotates an interface for which a dependency-injected
@@ -27,11 +27,11 @@
2727
* </ul>
2828
*/
2929
@Target(TYPE)
30-
@Retention(RUNTIME)
30+
@Retention(SOURCE)
3131
public @interface Component {
3232

3333
/**
34-
* A factory for a component.Components <em>may</em> have a single nested {@code interface}
34+
* A factory for a component. Components <em>may</em> have a single nested {@code interface}
3535
* annotated with {@code @Component.Factory}.
3636
*
3737
* <p>A factory is a type with a single method that returns a new component instance each time it
@@ -47,7 +47,7 @@
4747
* </ul>
4848
*/
4949
@Target(TYPE)
50-
@Retention(RUNTIME)
50+
@Retention(SOURCE)
5151
@interface Factory {
5252
}
5353
}

simple-component/src/main/java/io/jbock/simple/Provides.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.lang.annotation.Target;
55

66
import static java.lang.annotation.ElementType.METHOD;
7-
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7+
import static java.lang.annotation.RetentionPolicy.SOURCE;
88

99
/**
1010
* Annotates <em>static</em> methods of a {@linkplain Component component}
@@ -16,6 +16,6 @@
1616
* implementation will pass dependencies to the method as parameters.
1717
*/
1818
@Target(METHOD)
19-
@Retention(RUNTIME)
19+
@Retention(SOURCE)
2020
public @interface Provides {
2121
}

0 commit comments

Comments
 (0)