commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/8] [lang] Reference constants in a non static way to align the retention value with the target value.
Date Mon, 04 May 2015 19:47:16 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 60b32953a -> d2b1e522b


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


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/37c20df7
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/37c20df7
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/37c20df7

Branch: refs/heads/master
Commit: 37c20df721522b175bc9df3f06a361297010df5e
Parents: 8548b12
Author: Benedikt Ritter <britter@apache.org>
Authored: Mon May 4 20:58:47 2015 +0200
Committer: Benedikt Ritter <britter@apache.org>
Committed: Mon May 4 20:58:47 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/lang3/builder/EqualsExclude.java     | 4 ++--
 .../java/org/apache/commons/lang3/builder/HashCodeExclude.java   | 4 ++--
 .../java/org/apache/commons/lang3/builder/ToStringExclude.java   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/37c20df7/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java
----------------------------------------------------------------------
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 f71616f..52edebb 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 {
 

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/37c20df7/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java
----------------------------------------------------------------------
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 adc2eb4..369f0bc 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 {
 

http://git-wip-us.apache.org/repos/asf/commons-lang/blob/37c20df7/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java
----------------------------------------------------------------------
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 0e26c49..4b73599 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 {
 


Mime
View raw message