This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 1c42dfb Clean ups.
1c42dfb is described below
commit 1c42dfb05791a1172e03d355d296327c013177f9
Author: Gary Gregory
AuthorDate: Thu Mar 19 10:00:46 2020 -0400
Clean ups.
---
.../commons/lang3/builder/EqualsExclude.java | 2 +-
.../commons/lang3/builder/HashCodeExclude.java | 2 +-
.../commons/lang3/builder/ToStringExclude.java | 2 +-
.../commons/lang3/builder/ToStringSummary.java | 2 +-
.../apache/commons/lang3/reflect/TypeUtils.java| 241 +++--
.../text/translate/NumericEntityUnescaper.java | 4 +-
6 files changed, 132 insertions(+), 121 deletions(-)
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 f6b4d3e..b4ede8f 100755
--- a/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java
+++ b/src/main/java/org/apache/commons/lang3/builder/EqualsExclude.java
@@ -32,5 +32,5 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface EqualsExclude {
-
+// empty
}
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 e25a168..d1c3661 100755
--- a/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java
+++ b/src/main/java/org/apache/commons/lang3/builder/HashCodeExclude.java
@@ -32,5 +32,5 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface HashCodeExclude {
-
+// empty
}
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 e36acce..41dcf67 100755
--- a/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ToStringExclude.java
@@ -31,5 +31,5 @@ import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ToStringExclude {
-
+// empty
}
diff --git
a/src/main/java/org/apache/commons/lang3/builder/ToStringSummary.java
b/src/main/java/org/apache/commons/lang3/builder/ToStringSummary.java
index ba255d4..c6dad14 100644
--- a/src/main/java/org/apache/commons/lang3/builder/ToStringSummary.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ToStringSummary.java
@@ -36,5 +36,5 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ToStringSummary {
-
+// empty
}
diff --git a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
index eced4e0..aea37a7 100644
--- a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
+++ b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java
@@ -150,12 +150,12 @@ public class TypeUtils {
/**
* Constructor
- * @param raw type
+ * @param rawClass type
* @param useOwner owner type to use, if any
* @param typeArguments formal type arguments
*/
-private ParameterizedTypeImpl(final Class raw, final Type useOwner,
final Type[] typeArguments) {
-this.raw = raw;
+private ParameterizedTypeImpl(final Class rawClass, final Type
useOwner, final Type[] typeArguments) {
+this.raw = rawClass;
this.useOwner = useOwner;
this.typeArguments = Arrays.copyOf(typeArguments,
typeArguments.length, Type[].class);
}
@@ -482,17 +482,18 @@ public class TypeUtils {
/**
* Look up {@code var} in {@code typeVarAssigns} transitively,
* i.e. keep looking until the value found is not a type variable.
- * @param var the type variable to look up
+ * @param typeVariable the type variable to look up
* @param typeVarAssigns the map used for the look up
* @return Type or {@code null} if some variable was not in the map
* @since 3.2
*/
-private static Type unrollVariableAssignments(TypeVariable var, final
Map, Type> typeVarAssigns) {
+private static Type unrollVariableAssignments(TypeVariable typeVariable,
+final Map, Type> typeVarAssigns) {
Type result;
do {
-result = typeVarAssigns.get(var);
-if (result instanceof TypeVariable && !result.equals(var)) {
-var = (TypeVariable) result;
+result = typeVarAssigns.get(typeVariable);
+if (result instanceof TypeVariable &&
!result.equals(typeVariable)) {
+typeVariable = (TypeVariable) result;