mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix typo
This commit is contained in:
+1
-1
@@ -421,7 +421,7 @@ public class GroovyPsiElementFactoryImpl extends GroovyPsiElementFactory {
|
||||
}
|
||||
|
||||
public PsiElement createModifierFromText(String name) {
|
||||
final GroovyFileBase file = createGroovyFileChecked(name + "foo() {}");
|
||||
final GroovyFileBase file = createGroovyFileChecked(name + " foo() {}");
|
||||
final GrTopLevelDefinition[] definitions = file.getTopLevelDefinitions();
|
||||
if (definitions.length != 1) throw new IncorrectOperationException(name);
|
||||
return definitions[0].getFirstChild().getFirstChild();
|
||||
|
||||
Reference in New Issue
Block a user