JavaClassName nur in der Regestry erstellen

This commit is contained in:
JanUlrich 2017-03-09 15:43:13 +01:00
parent 2cdca93077
commit d9cc613600

View File

@ -132,7 +132,8 @@ public class SyntaxTreeGenerator{
String typeName = convertTypeName(ctx.typeName());
String packageName = getPackageFromClass(typeName);
List<JavaClassName> classes = PackageCrawler.getClassNames(packageName);
JavaClassName ret = new JavaClassName(typeName);
reg.add(typeName);
JavaClassName ret = reg.getName(typeName);
if(classes.contains(ret)){
return ret;
}