This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 9defa770ab24b0f7e4a8b8f57b2d1a88f88b9542 Author: Gary Gregory <[email protected]> AuthorDate: Sat Jul 25 08:10:09 2026 -0400 Merge if statements with the same return value. --- src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java b/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java index d3d4de1a7..d897893d3 100644 --- a/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java +++ b/src/main/java/org/apache/commons/lang3/time/AbstractFormatCache.java @@ -60,10 +60,7 @@ public boolean equals(final Object obj) { if (this == obj) { return true; } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { + if (obj == null || getClass() != obj.getClass()) { return false; } final ArrayKey other = (ArrayKey) obj;
