From 3ed300268fca3c591a51b787fa611a16913377e7 Mon Sep 17 00:00:00 2001 From: Aldaron7 Date: Mon, 30 Apr 2018 19:43:26 +0200 Subject: [PATCH] fixed: Interfaces des selben Typs werden nur noch einmal generiert, auch wenn sie mehrfach in unterschiedlichen Constraints vorkommen. --- src/de/dhbwstuttgart/strucTypes/Construct.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/strucTypes/Construct.java b/src/de/dhbwstuttgart/strucTypes/Construct.java index ac5aa85a..96cc7507 100644 --- a/src/de/dhbwstuttgart/strucTypes/Construct.java +++ b/src/de/dhbwstuttgart/strucTypes/Construct.java @@ -2,7 +2,9 @@ package de.dhbwstuttgart.strucTypes; import java.lang.reflect.Modifier; import java.util.ArrayList; +import java.util.HashSet; import java.util.List; +import java.util.Set; import org.antlr.v4.runtime.Token; @@ -29,7 +31,7 @@ public class Construct extends DefaultASTVisitor { private List subTypeConstraints = new ArrayList<>(); private ConstraintsSet constraintsSet = new ConstraintsSet(); - private List newInterf = new ArrayList<>(); + private Set newInterf = new HashSet<>(); private InferredTypes inferredTypes = new InferredTypes(); private List constructedInterfaces = new ArrayList<>();