[intention-preview] toString() for HTML preview

GitOrigin-RevId: ee40f912cebab06caab96597762da5401ccbd827
This commit is contained in:
Tagir Valeev
2024-02-07 19:28:47 +00:00
committed by intellij-monorepo-bot
parent 59c4a03f79
commit 0931d75584
@@ -247,6 +247,25 @@ public interface IntentionPreviewInfo {
public @NotNull InfoKind infoKind() {
return myInfoKind;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Html html = (Html)o;
return myContent.toString().equals(html.myContent.toString()) && myInfoKind == html.myInfoKind;
}
@Override
public int hashCode() {
return 31 * myContent.toString().hashCode() + myInfoKind.hashCode();
}
@Override
public String toString() {
return "HTML [content=" + myContent + ", infoKind=" + myInfoKind + "]";
}
}
/**