avoid name clash with java 9

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2017-10-18 13:37:52 +02:00
parent 7e1cf4b5a4
commit b6cbf6dc17
2 changed files with 5 additions and 3 deletions

View file

@ -589,7 +589,7 @@ class XtextGeneratorTemplates {
}
}
protected Module getRuntimeModule(String grammar) {
protected «Module» getRuntimeModule(String grammar) {
«FOR lang : langConfigs»
if («lang.grammar.name.toUpperCase.replaceAll('\\.', '_')».equals(grammar)) {
return new «getRuntimeModule(lang.grammar)»();

View file

@ -1791,8 +1791,10 @@ public class XtextGeneratorTemplates {
_builder.append("\t");
_builder.newLine();
_builder.append("\t");
_builder.append("protected Module getRuntimeModule(String grammar) {");
_builder.newLine();
_builder.append("protected ");
_builder.append(Module.class, "\t");
_builder.append(" getRuntimeModule(String grammar) {");
_builder.newLineIfNotEmpty();
{
for(final IXtextGeneratorLanguage lang_1 : langConfigs) {
_builder.append("\t\t");