Change retention to RUNTIME instead of SOURCE.

This commit is contained in:
Senmori 2018-07-15 22:39:38 -04:00 committed by md_5
parent ff90375334
commit 39f216740c
17 changed files with 17 additions and 17 deletions

View file

@ -17,7 +17,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Repeatable(DependsOn.class) @Repeatable(DependsOn.class)
public @interface Dependency { public @interface Dependency {
/** /**

View file

@ -16,7 +16,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
public @interface DependsOn { public @interface DependsOn {
Dependency[] value() default {}; Dependency[] value() default {};
} }

View file

@ -16,7 +16,7 @@ import java.lang.annotation.Target;
* The plugin listed will be treated as a {@link SoftDependency}. <br> * The plugin listed will be treated as a {@link SoftDependency}. <br>
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Repeatable(LoadBeforePlugins.class) @Repeatable(LoadBeforePlugins.class)
public @interface LoadBefore { public @interface LoadBefore {

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
* how repeating annotations work. * how repeating annotations work.
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface LoadBeforePlugins { public @interface LoadBeforePlugins {
LoadBefore[] value() default {}; LoadBefore[] value() default {};

View file

@ -17,7 +17,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Repeatable(SoftDependsOn.class) @Repeatable(SoftDependsOn.class)
public @interface SoftDependency { public @interface SoftDependency {

View file

@ -17,7 +17,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface SoftDependsOn { public @interface SoftDependsOn {
SoftDependency[] value() default {}; SoftDependency[] value() default {};

View file

@ -11,7 +11,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
public @interface ChildPermission { public @interface ChildPermission {
/** /**
* If true, this child node will inherit the parent {@link Permission}'s permission. * If true, this child node will inherit the parent {@link Permission}'s permission.

View file

@ -14,7 +14,7 @@ import java.lang.annotation.Target;
* Defines a plugin permission * Defines a plugin permission
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Repeatable(Permissions.class) @Repeatable(Permissions.class)
public @interface Permission { public @interface Permission {

View file

@ -15,7 +15,7 @@ import java.lang.annotation.Target;
* how repeating annotations work. * how repeating annotations work.
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface Permissions { public @interface Permissions {
Permission[] value() default {}; Permission[] value() default {};

View file

@ -19,7 +19,7 @@ import java.util.Collection;
* Pre-1.13 plugins do not need to use this annotation. * Pre-1.13 plugins do not need to use this annotation.
*/ */
@Documented @Documented
@Retention( RetentionPolicy.SOURCE ) @Retention(RetentionPolicy.RUNTIME)
@Target( ElementType.TYPE ) @Target( ElementType.TYPE )
public @interface ApiVersion { public @interface ApiVersion {

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface Description { public @interface Description {
/** /**

View file

@ -15,7 +15,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface LoadOrder { public @interface LoadOrder {
/** /**

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface LogPrefix { public @interface LogPrefix {
/** /**

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
* (i.e. the class that extends {@link org.bukkit.plugin.java.JavaPlugin} * (i.e. the class that extends {@link org.bukkit.plugin.java.JavaPlugin}
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface Plugin { public @interface Plugin {
/** /**

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface Website { public @interface Website {
/** /**

View file

@ -14,7 +14,7 @@ import java.lang.annotation.Target;
* in plugin.yml if a single author, otherwise {@code authors} * in plugin.yml if a single author, otherwise {@code authors}
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Repeatable(Authors.class) @Repeatable(Authors.class)
public @interface Author { public @interface Author {

View file

@ -13,7 +13,7 @@ import java.lang.annotation.Target;
* how repeating annotations work. * how repeating annotations work.
*/ */
@Documented @Documented
@Retention(RetentionPolicy.SOURCE) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
public @interface Authors { public @interface Authors {
Author[] value(); Author[] value();