forked from JavaTX/JavaCompilerCore
modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java
This commit is contained in:
parent
8e89c9b5e8
commit
54de28c3f0
@ -578,7 +578,7 @@ public class FamilyOfGeneratedGenerics {
|
|||||||
while(itTC.hasNext()) {
|
while(itTC.hasNext()) {
|
||||||
Pair pairTC = itTC.next();
|
Pair pairTC = itTC.next();
|
||||||
// if (tc.getLeft() == mc.getLeft() && tc.getRight() == mc.getRight() && tc.getRel() == mc.getRel()) {
|
// if (tc.getLeft() == mc.getLeft() && tc.getRight() == mc.getRight() && tc.getRel() == mc.getRel()) {
|
||||||
if(pairTC.TA1 == newPair.TA1 && pairTC.TA2 == newPair.TA2 && pairTC.OperatorSmallerDot() && newPair.OperatorSmallerDot()) {
|
if(resSet.resolveType((TypePlaceholder)(pairTC.TA1)).resolvedType == newPair.TA1 && resSet.resolveType((TypePlaceholder)(pairTC.TA2)).resolvedType == newPair.TA2 && pairTC.OperatorSmallerDot() && newPair.OperatorSmallerDot()) { //hier bei pairTC resolvedType, damit Pairs aus oldCons in der Methode zur Berechnung von der transitiven Hülle nicht in eine Endlosschleife kommen (Cycles!)
|
||||||
// if (!checkForDuplicates(mc, tempMC)) {
|
// if (!checkForDuplicates(mc, tempMC)) {
|
||||||
if(!checkForDuplicatesForSets(newPair, tempSet)) {
|
if(!checkForDuplicatesForSets(newPair, tempSet)) {
|
||||||
tempSet.add(newPair);
|
tempSet.add(newPair);
|
||||||
|
Loading…
Reference in New Issue
Block a user