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 f78a858a1a99fb81d102149337be6586bdc8ad4c Author: Gary Gregory <[email protected]> AuthorDate: Sat Jul 25 08:13:11 2026 -0400 Merge if statements with the same return value. --- src/main/java/org/apache/commons/lang3/text/StrBuilder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java index 7571a634e..63d654849 100644 --- a/src/main/java/org/apache/commons/lang3/text/StrBuilder.java +++ b/src/main/java/org/apache/commons/lang3/text/StrBuilder.java @@ -1877,10 +1877,7 @@ public boolean equals(final StrBuilder other) { if (this == other) { return true; } - if (other == null) { - return false; - } - if (this.size != other.size) { + if (other == null || this.size != other.size) { return false; } final char[] thisBuf = this.buffer;
