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 b900dce Use final. b900dce is described below commit b900dce2001366a56f139514b781864ddc20e158 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Nov 30 22:32:16 2021 -0500 Use final. --- src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java | 4 ++-- .../commons/lang3/exception/UncheckedIllegalAccessException.java | 2 +- src/main/java/org/apache/commons/lang3/util/FluentBitSet.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java b/src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java index eb7038e..485a618 100644 --- a/src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java +++ b/src/main/java/org/apache/commons/lang3/compare/ComparableUtils.java @@ -219,7 +219,7 @@ public class ComparableUtils { * @see ObjectUtils#max(Comparable...) * @since 3.13.0 */ - public static <A extends Comparable<A>> A max(A comparable1, A comparable2) { + public static <A extends Comparable<A>> A max(final A comparable1, final A comparable2) { return ObjectUtils.compare(comparable1, comparable2, false) > 0 ? comparable1 : comparable2; } @@ -236,7 +236,7 @@ public class ComparableUtils { * @see ObjectUtils#min(Comparable...) * @since 3.13.0 */ - public static <A extends Comparable<A>> A min(A comparable1, A comparable2) { + public static <A extends Comparable<A>> A min(final A comparable1, final A comparable2) { return ObjectUtils.compare(comparable1, comparable2, true) < 0 ? comparable1 : comparable2; } diff --git a/src/main/java/org/apache/commons/lang3/exception/UncheckedIllegalAccessException.java b/src/main/java/org/apache/commons/lang3/exception/UncheckedIllegalAccessException.java index ae7dd48..509aca8 100644 --- a/src/main/java/org/apache/commons/lang3/exception/UncheckedIllegalAccessException.java +++ b/src/main/java/org/apache/commons/lang3/exception/UncheckedIllegalAccessException.java @@ -32,7 +32,7 @@ public class UncheckedIllegalAccessException extends UncheckedReflectiveOperatio * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). (A @{code null} value * is permitted, and indicates that the cause is nonexistent or unknown.) */ - public UncheckedIllegalAccessException(Throwable cause) { + public UncheckedIllegalAccessException(final Throwable cause) { super(cause); } diff --git a/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java b/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java index 2b41f5e..11416c0 100644 --- a/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java +++ b/src/main/java/org/apache/commons/lang3/util/FluentBitSet.java @@ -191,14 +191,14 @@ public final class FluentBitSet implements Cloneable, Serializable { } @Override - public boolean equals(Object obj) { + public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof FluentBitSet)) { return false; } - FluentBitSet other = (FluentBitSet) obj; + final FluentBitSet other = (FluentBitSet) obj; return Objects.equals(bitSet, other.bitSet); }