mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
replacing == and != for strings with equals() where appropriate
This commit is contained in:
+2
-2
@@ -369,11 +369,11 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge
|
||||
}
|
||||
|
||||
public Pair<String, String> 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user