diff --git a/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java b/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java index f71616fb1..52edebb75 100755 --- a/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java +++ b/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java @@ -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 { diff --git a/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java b/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java index adc2eb49c..369f0bcad 100755 --- a/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java +++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java @@ -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 { diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java b/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java index 0e26c4927..4b7359909 100755 --- a/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java +++ b/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java @@ -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 {