From 918d0db79977eab20184d9edc7a37693eb264f58 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Fri, 29 Jan 2021 09:25:10 +0100 Subject: [PATCH] modified: src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java --- src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java b/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java index f6292f3b..de5e29c1 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java @@ -78,7 +78,7 @@ public class TPHExtractor extends AbstractASTWalker { public void visit(TypePlaceholder tph) { if (resultSet.resolveType(tph).resolvedType instanceof TypePlaceholder) { TypePlaceholder resolvedTPH = (TypePlaceholder) resultSet.resolveType(tph).resolvedType; - if (inMethod) { + if (inMethod && !tphsClass.contains(resolvedTPH.getName())) { methodAndTph.getTphs().add(resolvedTPH.getName()); if (inLocalOrParamOrReturn) methodAndTph.getLocalTphs().add(resolvedTPH.getName());