From 719d1a5cedb3141498812a5d50cb262d8af7f1c8 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Wed, 20 Dec 2017 15:59:07 +0100 Subject: [PATCH] Interface Modifier setzen --- .../parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java index b5ade811..c5b135e6 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java @@ -379,6 +379,8 @@ public class SyntaxTreeGenerator{ modifiers += newModifier; } } + if(!Modifier.isInterface(modifiers))modifiers += Modifier.INTERFACE; + JavaClassName name = reg.getName(ctx.Identifier().getText()); GenericsRegistry generics = createGenerics(ctx.typeParameters(), name, "", reg, new GenericsRegistry(globalGenerics));