Add Documented annotation and javadoc to new mixin annotations

This commit is contained in:
Adam
2017-10-22 10:57:54 -04:00
parent 71382a7819
commit 367bd1e1ec
2 changed files with 11 additions and 0 deletions

View File

@@ -24,13 +24,19 @@
*/ */
package net.runelite.api.mixins; package net.runelite.api.mixins;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/**
* Indicates a copy of the specified method should be copied into
* the target class.
*/
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Documented
public @interface Copy public @interface Copy
{ {
/** /**

View File

@@ -24,13 +24,18 @@
*/ */
package net.runelite.api.mixins; package net.runelite.api.mixins;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
/**
* Replaces the existing method in the target class with the given method.
*/
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Documented
public @interface Replace public @interface Replace
{ {
/** /**