mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correct hashcode computation
GitOrigin-RevId: 93b939f4f7850128fcd9867c3a6bdebeba26eea2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6150820425
commit
5b40cccb5e
@@ -1,9 +1,10 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.jps.dependency.java;
|
||||
|
||||
import org.jetbrains.jps.dependency.GraphDataInput;
|
||||
import org.jetbrains.jps.dependency.GraphDataOutput;
|
||||
import org.jetbrains.jps.dependency.impl.RW;
|
||||
import org.jetbrains.jps.javac.Iterators;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -60,10 +61,10 @@ public final class AnnotationUsage extends JvmElementUsage {
|
||||
if (!myClassType.equals(that.myClassType)) {
|
||||
return false;
|
||||
}
|
||||
if (!myUsedArgNames.equals(that.myUsedArgNames)) {
|
||||
if (!Iterators.equals(myUsedArgNames, that.myUsedArgNames)) {
|
||||
return false;
|
||||
}
|
||||
if (!myTargets.equals(that.myTargets)) {
|
||||
if (!Iterators.equals(myTargets, that.myTargets)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -73,8 +74,8 @@ public final class AnnotationUsage extends JvmElementUsage {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int result = myClassType.hashCode();
|
||||
result = 31 * result + myUsedArgNames.hashCode();
|
||||
result = 31 * result + myTargets.hashCode();
|
||||
result = 31 * result + Iterators.hashCode(myUsedArgNames);
|
||||
result = 31 * result + Iterators.hashCode(myTargets);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user