We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0c6d6 commit 125a97fCopy full SHA for 125a97f
src/main/java/org/apache/commons/text/TextStringBuilder.java
@@ -1185,13 +1185,10 @@ public TextStringBuilder appendNewLine() {
1185
/**
1186
* Appends the text representing {@code null} to this string builder.
1187
*
1188
- * @return this, to enable chaining
+ * @return this, to enable chaining.
1189
*/
1190
public TextStringBuilder appendNull() {
1191
- if (nullText == null) {
1192
- return this;
1193
- }
1194
- return append(nullText);
+ return nullText != null ? append(nullText) : this;
1195
}
1196
1197
0 commit comments