diff --git a/src/de/dhbwstuttgart/strucTypes/Construct.java b/src/de/dhbwstuttgart/strucTypes/Construct.java index 37ef6c9a..95a8454c 100644 --- a/src/de/dhbwstuttgart/strucTypes/Construct.java +++ b/src/de/dhbwstuttgart/strucTypes/Construct.java @@ -88,19 +88,19 @@ public class Construct extends DefaultASTVisitor { // For über alle FieldConstraints mit ClassType i this.constraintsSet.getFieldConstraints().stream().filter(fc -> fc.getClassType().equals(i)).forEach(fc -> { - TypePlaceholder type = TypePlaceholder.fresh(i.getOffset()); + TypePlaceholder type = TypePlaceholder.fresh(offset); parameterInhTyterm.add(fc.getFieldType()); // TODO generics.add(new GenericTypeVar(s, bounds, offset, // endOffset)); mit type generics.add(new GenericTypeVar(new GenericTypeName(new GenericContext(name, null), type.getName()), new ArrayList<>(), offset, offset)); - Field field = new Field(fc.getFieldName(), type, Modifier.PUBLIC, i.getOffset()); + Field field = new Field(fc.getFieldName(), type, Modifier.PUBLIC, offset); fielddecl.add(field); }); // For über alle MethodConstraints mit ClassType i this.constraintsSet.getMethodConstraints().stream().filter(mc -> mc.getClassType().equals(i)).forEach(mc -> { - TypePlaceholder returnType = TypePlaceholder.fresh(i.getOffset()); + TypePlaceholder returnType = TypePlaceholder.fresh(offset); parameterInhTyterm.add(mc.getReturnType()); // TODO generics.add(new GenericTypeVar(s, bounds, offset, // endOffset)); mit retrunType