From d14f1d92c97303cb8280029edd4884c07dec4fe8 Mon Sep 17 00:00:00 2001 From: AluAli Date: Fri, 26 Feb 2021 11:42:31 +0100 Subject: [PATCH] modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java --- .../bytecode/insertGenerics/FamilyOfGeneratedGenerics.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java index 3628ed1d..853f4bf4 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java @@ -166,6 +166,11 @@ public class FamilyOfGeneratedGenerics { if (!checkForDuplicates(consToAdd, tempCC)) { tempCC.add(consToAdd); } + }else if(pair.fst == PositionFinder.Position.FIELD){ + ClassConstraint consToAdd = new ClassConstraint(tph, objectType, Relation.EXTENDS); + if (!checkForDuplicates(consToAdd, tempCC)) { + tempCC.add(consToAdd); + } } } }