mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
Fix/suppress 'expression compared to itself' problems
GitOrigin-RevId: c5c0bfdf38186db622509009de02b92ae46045bc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8fad668268
commit
29dfce5e79
@@ -337,7 +337,7 @@ class JBCefOsrComponent extends JPanel {
|
||||
return e1.getComponent() == e2.getComponent() &&
|
||||
e1.getID() == e2.getID() &&
|
||||
e1.getModifiersEx() == e2.getModifiersEx() &&
|
||||
e1.isPopupTrigger() == e1.isPopupTrigger() &&
|
||||
e1.isPopupTrigger() == e2.isPopupTrigger() &&
|
||||
e1.getScrollType() == e2.getScrollType() &&
|
||||
distance < TOLERANCE;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ final class ValueSerializationChecker<Value, Input> {
|
||||
|
||||
private @Nullable Exception getValueSerializationProblem(@NotNull Map<?, Value> data, @NotNull Input input) {
|
||||
for (final Value value : data.values()) {
|
||||
//noinspection ExpressionComparedToItself
|
||||
if (!(Comparing.equal(value, value) && (value == null || value.hashCode() == value.hashCode()))) {
|
||||
return new Exception("Index " + myIndexId + " violates equals / hashCode contract for Value parameter");
|
||||
}
|
||||
|
||||
@@ -874,7 +874,7 @@ public final class IdeaProjectSerializationService implements SerializationServi
|
||||
@Override
|
||||
public boolean equals(IdeaCompilerOutput o1, IdeaCompilerOutput o2) {
|
||||
return o1 == o2 || o1 != null && o2 != null &&
|
||||
o1.getInheritOutputDirs() == o1.getInheritOutputDirs() &&
|
||||
o1.getInheritOutputDirs() == o2.getInheritOutputDirs() &&
|
||||
compare(o1.getOutputDir(), o2.getOutputDir(), new FilePathComparator()) == 0 &&
|
||||
compare(o1.getTestOutputDir(), o2.getTestOutputDir()) == 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user