From ff2e19f643232ef8eff4d8d0422cd52c8aabff3e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 9 Nov 2012 18:53:14 +0100 Subject: [PATCH] replacing == and != for strings with equals() where appropriate --- .../intellij/openapi/wm/impl/status/InfoAndProgressPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java index 12e87366fd5e..e9984dd95f6e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java @@ -369,11 +369,11 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge } public Pair setText(@Nullable final String text, @Nullable final String requestor) { - if (StringUtil.isEmpty(text) && !Comparing.equal(requestor, myCurrentRequestor) && requestor != EventLog.LOG_REQUESTOR) { + if (StringUtil.isEmpty(text) && !Comparing.equal(requestor, myCurrentRequestor) && !EventLog.LOG_REQUESTOR.equals(requestor)) { return Pair.create(myInfoPanel.getText(), myCurrentRequestor); } - boolean logMode = myInfoPanel.updateText(requestor == EventLog.LOG_REQUESTOR ? "" : text); + boolean logMode = myInfoPanel.updateText(EventLog.LOG_REQUESTOR.equals(requestor) ? "" : text); myCurrentRequestor = logMode ? EventLog.LOG_REQUESTOR : requestor; return Pair.create(text, requestor); }