mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
avoid name clash with java 9
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
7e1cf4b5a4
commit
b6cbf6dc17
2 changed files with 5 additions and 3 deletions
|
@ -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)»();
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue