mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[yaml, kubernetes] IDEA-185004
This commit is contained in:
@@ -24,6 +24,8 @@ import org.jetbrains.yaml.psi.YAMLMapping;
|
||||
import org.jetbrains.yaml.psi.YAMLPsiElement;
|
||||
import org.jetbrains.yaml.psi.YAMLValue;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@ApiStatus.Experimental
|
||||
public abstract class YamlDocumentationProviderBase extends AbstractDocumentationProvider {
|
||||
@Override
|
||||
@@ -221,5 +223,21 @@ public abstract class YamlDocumentationProviderBase extends AbstractDocumentatio
|
||||
public String getDocumentation() {
|
||||
return YamlDocumentationProviderBase.this.getDocumentation(myProject, myType, myField);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DocumentationElement element = (DocumentationElement)o;
|
||||
return Objects.equals(myProject, element.myProject) &&
|
||||
Objects.equals(myType, element.myType) &&
|
||||
Objects.equals(myField, element.myField);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
||||
return Objects.hash(myProject, myType, myField);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user