mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-188988 <statement> or DELIMITER expected in Java constants
This commit is contained in:
+3
-2
@@ -689,7 +689,7 @@ public class InjectedLanguageUtil {
|
||||
public static <T> void putInjectedFileUserData(@NotNull PsiElement element,
|
||||
@NotNull Language language,
|
||||
@NotNull Key<T> key,
|
||||
T value) {
|
||||
@Nullable T value) {
|
||||
PsiFile file = getCachedInjectedFileWithLanguage(element, language);
|
||||
if (file != null) {
|
||||
file.putUserData(key, value);
|
||||
@@ -718,7 +718,8 @@ public class InjectedLanguageUtil {
|
||||
.getCachedInjectedDocumentsInRange(containingFile, element.getTextRange())
|
||||
.stream()
|
||||
.map(documentWindow -> PsiDocumentManager.getInstance(containingFile.getProject()).getPsiFile(documentWindow))
|
||||
.filter(file -> file != null && file.getLanguage() == language)
|
||||
.filter(file -> file != null && file.getLanguage() == LanguageSubstitutors.INSTANCE.substituteLanguage(language, file.getVirtualFile(),
|
||||
file.getProject()))
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user