diff --git a/platform/platform-api/api-dump-unreviewed.txt b/platform/platform-api/api-dump-unreviewed.txt index ff2c20055d48e..c9f5af9075a9b 100644 --- a/platform/platform-api/api-dump-unreviewed.txt +++ b/platform/platform-api/api-dump-unreviewed.txt @@ -1703,6 +1703,7 @@ f:com.intellij.openapi.actionSystem.Separator - (java.util.function.Supplier):V - s:create():com.intellij.openapi.actionSystem.Separator - s:create(java.lang.String):com.intellij.openapi.actionSystem.Separator +- equals(java.lang.Object):Z - getActionUpdateThread():com.intellij.openapi.actionSystem.ActionUpdateThread - s:getInstance():com.intellij.openapi.actionSystem.Separator - getText():java.lang.String diff --git a/platform/platform-api/src/com/intellij/openapi/actionSystem/Separator.java b/platform/platform-api/src/com/intellij/openapi/actionSystem/Separator.java index 5bf712eac7475..cdcf09aebfba3 100644 --- a/platform/platform-api/src/com/intellij/openapi/actionSystem/Separator.java +++ b/platform/platform-api/src/com/intellij/openapi/actionSystem/Separator.java @@ -9,6 +9,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.util.Objects; import java.util.function.Supplier; /** @@ -52,6 +53,15 @@ public Separator(@NotNull Supplier<@NlsContexts.Separator String> dynamicText) { return myDynamicText.get(); } + @Override + public boolean equals(Object obj) { + if (this == obj) return true; + if (obj == null || getClass() != obj.getClass()) return false; + + Separator other = (Separator) obj; + return Objects.equals(myDynamicText, other.myDynamicText); + } + @Override public String toString() { return IdeBundle.message("action.separator", myDynamicText.get());