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 15f1834be0f63527dfd20a113d3756bed8729ced Author: Gary Gregory <[email protected]> AuthorDate: Sat Jul 25 08:12:28 2026 -0400 Merge if statements with the same return value. --- .../java/org/apache/commons/lang3/text/ExtendedMessageFormat.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java index 88328b534..74425e47d 100644 --- a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java +++ b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java @@ -265,10 +265,7 @@ public boolean equals(final Object obj) { if (this == obj) { return true; } - if (!super.equals(obj)) { - return false; - } - if (!(obj instanceof ExtendedMessageFormat)) { + if (!super.equals(obj) || !(obj instanceof ExtendedMessageFormat)) { return false; } final ExtendedMessageFormat other = (ExtendedMessageFormat) obj;
