From 06b27dabd2726e03b891063f29a37c3df932c19d Mon Sep 17 00:00:00 2001 From: Etienne Zink Date: Sun, 20 Mar 2022 15:07:02 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20von=20hashCode()=20und=20equals?= =?UTF-8?q?()=20zur=C3=BCck=20zur=20Benutzung=20von=20getFullyQualifiedNam?= =?UTF-8?q?e(),=20da=20dies=20eindeutig=20ist=20im=20Gegensatz=20zu=20getS?= =?UTF-8?q?ignature().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intermediate/types/IntermediateGenericType.java | 4 ++-- .../dhbwstuttgart/intermediate/types/IntermediateRefType.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateGenericType.java b/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateGenericType.java index f833d121..41da2502 100644 --- a/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateGenericType.java +++ b/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateGenericType.java @@ -43,7 +43,7 @@ public final class IntermediateGenericType extends IntermediateType { if (!(o instanceof IntermediateGenericType)) return false; 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; return true; } @@ -53,7 +53,7 @@ public final class IntermediateGenericType extends IntermediateType { int prime = 31; int hashCode = this.hashCode; if (hashCode == 0){ - hashCode += getSignature().hashCode(); + hashCode += getFullyQualifiedName().hashCode(); hashCode = prime * hashCode + genericName.hashCode(); this.hashCode = hashCode; } diff --git a/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateRefType.java b/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateRefType.java index bba52531..e42f5258 100644 --- a/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateRefType.java +++ b/src/main/java/de/dhbwstuttgart/intermediate/types/IntermediateRefType.java @@ -44,7 +44,7 @@ public final class IntermediateRefType extends IntermediateType{ if (!(o instanceof IntermediateRefType)) return false; 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++){ 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 hashCode = this.hashCode; if (hashCode == 0){ - hashCode += getSignature().hashCode(); + hashCode += getFullyQualifiedName().hashCode(); for (IntermediateType typeParameter:typParameters) { hashCode = prime * hashCode + typeParameter.hashCode(); }