mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] make GroovyDummyElement accept non null text; fix a typo
(IDEA-CR-32925)
This commit is contained in:
+1
-1
@@ -4,4 +4,4 @@ package org.jetbrains.plugins.groovy.lang.psi.impl
|
||||
import com.intellij.psi.impl.source.tree.FileElement
|
||||
import com.intellij.psi.tree.IElementType
|
||||
|
||||
class GroovyDummyElement(val childType: IElementType, text: CharSequence?) : FileElement(GroovyDummyElementType, text)
|
||||
class GroovyDummyElement(val childType: IElementType, text: CharSequence) : FileElement(GroovyDummyElementType, text)
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ public class GroovyPsiElementFactoryImpl extends GroovyPsiElementFactory {
|
||||
DummyHolder holder = new DummyHolder(myManager, dummyElement, context);
|
||||
PsiElement element = holder.getFirstChild();
|
||||
if (!(element instanceof GrCodeReferenceElement)) {
|
||||
throw new IncorrectOperationException("Incorrect core reference '" + refName + "'");
|
||||
throw new IncorrectOperationException("Incorrect code reference '" + refName + "'");
|
||||
}
|
||||
return (GrCodeReferenceElement)element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user