Add retention/targets to annotations

This commit is contained in:
Adam
2015-11-22 18:54:34 -06:00
parent 7d3acc0517
commit 3d2e3d6b60
2 changed files with 14 additions and 0 deletions

View File

@@ -1,5 +1,12 @@
package net.runelite.mapping;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ObfuscatedGetter
{
int intValue() default 0;

View File

@@ -1,5 +1,12 @@
package net.runelite.mapping;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
public @interface ObfuscatedName
{
String value();