From a823ef2b16b304f235b93a0965ebc1ea18d5b393 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Sun, 19 Aug 2018 19:42:31 +0200 Subject: [PATCH] Generics Resolve fixen --- .../typeinference/assumptions/MethodAssumption.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java b/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java index 1f2f7ed8a..3862d0eb3 100644 --- a/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java +++ b/src/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java @@ -38,10 +38,7 @@ public class MethodAssumption extends Assumption{ } public RefTypeOrTPHOrWildcardOrGeneric getReturnType(GenericsResolver resolver) { - if(retType instanceof GenericRefType) { - return resolver.resolve(retType); - } - return retType; + return resolver.resolve(retType); } public List getArgTypes(GenericsResolver resolver) {