Reference constants in a non static way to align the retention value with the target value.

This commit is contained in:
Benedikt Ritter 2015-05-04 20:58:47 +02:00
parent 8548b12d8f
commit 37c20df721
3 changed files with 6 additions and 6 deletions

View File

@ -19,13 +19,13 @@ package org.apache.commons.lang3.builder;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Use this annotation to builds a equals excluding the annotated field.
*/
@Retention(RUNTIME)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EqualsExclude {

View File

@ -19,13 +19,13 @@ package org.apache.commons.lang3.builder;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Use this annotation to builds a hash code excluding the annotated field.
*/
@Retention(RUNTIME)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface HashCodeExclude {

View File

@ -20,12 +20,12 @@ package org.apache.commons.lang3.builder;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.RetentionPolicy;
/**
* Use this annotation to builds a String excluding the annotated field.
*/
@Retention(RUNTIME)
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ToStringExclude {