modified: src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java

This commit is contained in:
pl@gohorb.ba-horb.de 2021-01-29 09:25:10 +01:00
parent 4b99b38b47
commit 918d0db799

View File

@ -78,7 +78,7 @@ public class TPHExtractor extends AbstractASTWalker {
public void visit(TypePlaceholder tph) { public void visit(TypePlaceholder tph) {
if (resultSet.resolveType(tph).resolvedType instanceof TypePlaceholder) { if (resultSet.resolveType(tph).resolvedType instanceof TypePlaceholder) {
TypePlaceholder resolvedTPH = (TypePlaceholder) resultSet.resolveType(tph).resolvedType; TypePlaceholder resolvedTPH = (TypePlaceholder) resultSet.resolveType(tph).resolvedType;
if (inMethod) { if (inMethod && !tphsClass.contains(resolvedTPH.getName())) {
methodAndTph.getTphs().add(resolvedTPH.getName()); methodAndTph.getTphs().add(resolvedTPH.getName());
if (inLocalOrParamOrReturn) if (inLocalOrParamOrReturn)
methodAndTph.getLocalTphs().add(resolvedTPH.getName()); methodAndTph.getLocalTphs().add(resolvedTPH.getName());