From d9cc613600a11801393e4512ec349812e9c18cfc Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 9 Mar 2017 15:43:13 +0100 Subject: [PATCH] JavaClassName nur in der Regestry erstellen --- src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java index c6995fa2..c9c0f140 100644 --- a/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java +++ b/src/de/dhbwstuttgart/parser/SyntaxTreeGenerator.java @@ -132,7 +132,8 @@ public class SyntaxTreeGenerator{ String typeName = convertTypeName(ctx.typeName()); String packageName = getPackageFromClass(typeName); List classes = PackageCrawler.getClassNames(packageName); - JavaClassName ret = new JavaClassName(typeName); + reg.add(typeName); + JavaClassName ret = reg.getName(typeName); if(classes.contains(ret)){ return ret; }