From 9cdb5f05efb445e8412821a57ca6c3a3185e14ed Mon Sep 17 00:00:00 2001 From: Aldaron7 Date: Wed, 21 Mar 2018 14:09:28 +0100 Subject: [PATCH] generics in Construct --- src/de/dhbwstuttgart/strucTypes/Construct.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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