You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/03/16 01:18:39 UTC
[james-project] 09/11: [PERF] StatusResponseEncoder: Use String::isEmpty
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 7e2b0da9bb76baa5b454c5954c5d1c245e825939
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Fri Mar 11 09:23:21 2022 +0700
[PERF] StatusResponseEncoder: Use String::isEmpty
Cheaper, simpler.
---
.../main/java/org/apache/james/imap/encode/StatusResponseEncoder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/protocols/imap/src/main/java/org/apache/james/imap/encode/StatusResponseEncoder.java b/protocols/imap/src/main/java/org/apache/james/imap/encode/StatusResponseEncoder.java
index 45aae42..89498b9 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/encode/StatusResponseEncoder.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/encode/StatusResponseEncoder.java
@@ -97,7 +97,7 @@ public class StatusResponseEncoder implements ImapResponseEncoder<ImmutableStatu
if (command != null) {
composer.commandName(command);
}
- if (text != null && !"".equals(text)) {
+ if (text != null && !text.isEmpty()) {
composer.message(text);
}
composer.end();
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org