From be1c356a9f2c744f7a34e76932dda35873b0898b Mon Sep 17 00:00:00 2001 From: Vic Nightfall Date: Sun, 13 Nov 2022 14:38:21 +0100 Subject: [PATCH] Don't drop wildcards --- .../dhbwstuttgart/target/tree/type/TargetExtendsWildcard.java | 2 +- .../de/dhbwstuttgart/target/tree/type/TargetSuperWildcard.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/target/tree/type/TargetExtendsWildcard.java b/src/main/java/de/dhbwstuttgart/target/tree/type/TargetExtendsWildcard.java index 7e5ab002..a242dec9 100644 --- a/src/main/java/de/dhbwstuttgart/target/tree/type/TargetExtendsWildcard.java +++ b/src/main/java/de/dhbwstuttgart/target/tree/type/TargetExtendsWildcard.java @@ -8,7 +8,7 @@ public record TargetExtendsWildcard(TargetType innerType) implements TargetType @Override public String toGenericSignature() { - return innerType.toGenericSignature(); + return "+" + innerType.toGenericSignature(); } @Override diff --git a/src/main/java/de/dhbwstuttgart/target/tree/type/TargetSuperWildcard.java b/src/main/java/de/dhbwstuttgart/target/tree/type/TargetSuperWildcard.java index bf16e143..52cc6dea 100644 --- a/src/main/java/de/dhbwstuttgart/target/tree/type/TargetSuperWildcard.java +++ b/src/main/java/de/dhbwstuttgart/target/tree/type/TargetSuperWildcard.java @@ -8,7 +8,7 @@ public record TargetSuperWildcard(TargetType innerType) implements TargetType { @Override public String toGenericSignature() { - return innerType.toGenericSignature(); + return "-" + innerType.toGenericSignature(); } @Override