Änderung von hashCode() und equals() zurück zur Benutzung von getFullyQualifiedName(), da dies eindeutig ist im Gegensatz zu getSignature().
This commit is contained in:
parent
9baf89acc2
commit
06b27dabd2
@ -43,7 +43,7 @@ public final class IntermediateGenericType extends IntermediateType {
|
|||||||
if (!(o instanceof IntermediateGenericType)) return false;
|
if (!(o instanceof IntermediateGenericType)) return false;
|
||||||
|
|
||||||
IntermediateGenericType intermediateGenericType = (IntermediateGenericType) o;
|
IntermediateGenericType intermediateGenericType = (IntermediateGenericType) o;
|
||||||
if(!getSignature().equals(intermediateGenericType.getSignature())) return false;
|
if(!getFullyQualifiedName().equals(intermediateGenericType.getFullyQualifiedName())) return false;
|
||||||
if(!genericName.equals(intermediateGenericType.genericName)) return false;
|
if(!genericName.equals(intermediateGenericType.genericName)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ public final class IntermediateGenericType extends IntermediateType {
|
|||||||
int prime = 31;
|
int prime = 31;
|
||||||
int hashCode = this.hashCode;
|
int hashCode = this.hashCode;
|
||||||
if (hashCode == 0){
|
if (hashCode == 0){
|
||||||
hashCode += getSignature().hashCode();
|
hashCode += getFullyQualifiedName().hashCode();
|
||||||
hashCode = prime * hashCode + genericName.hashCode();
|
hashCode = prime * hashCode + genericName.hashCode();
|
||||||
this.hashCode = hashCode;
|
this.hashCode = hashCode;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ public final class IntermediateRefType extends IntermediateType{
|
|||||||
if (!(o instanceof IntermediateRefType)) return false;
|
if (!(o instanceof IntermediateRefType)) return false;
|
||||||
|
|
||||||
IntermediateRefType intermediateRefType = (IntermediateRefType) o;
|
IntermediateRefType intermediateRefType = (IntermediateRefType) o;
|
||||||
if(!getSignature().equals(intermediateRefType.getSignature())) return false;
|
if(!getFullyQualifiedName().equals(intermediateRefType.getFullyQualifiedName())) return false;
|
||||||
|
|
||||||
for(int index = 0; index < typParameters.size(); index++){
|
for(int index = 0; index < typParameters.size(); index++){
|
||||||
if(!typParameters.get(index).equals(intermediateRefType.typParameters.get(index))) return false;
|
if(!typParameters.get(index).equals(intermediateRefType.typParameters.get(index))) return false;
|
||||||
@ -57,7 +57,7 @@ public final class IntermediateRefType extends IntermediateType{
|
|||||||
int prime = 31;
|
int prime = 31;
|
||||||
int hashCode = this.hashCode;
|
int hashCode = this.hashCode;
|
||||||
if (hashCode == 0){
|
if (hashCode == 0){
|
||||||
hashCode += getSignature().hashCode();
|
hashCode += getFullyQualifiedName().hashCode();
|
||||||
for (IntermediateType typeParameter:typParameters) {
|
for (IntermediateType typeParameter:typParameters) {
|
||||||
hashCode = prime * hashCode + typeParameter.hashCode();
|
hashCode = prime * hashCode + typeParameter.hashCode();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user