Make project compilable after types enhancement
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ public class AndroidPsiTreeChangePreprocessor : PsiTreeChangePreprocessor, Simpl
|
||||
val info = androidModuleInfo ?: return listOf()
|
||||
|
||||
val fileManager = VirtualFileManager.getInstance()
|
||||
return info.resDirectories.map { fileManager.findFileByUrl("file://" + it) }
|
||||
return info.resDirectories.map { fileManager.findFileByUrl("file://" + it)!! }
|
||||
}
|
||||
|
||||
private fun PsiFile.isLayoutXmlFile(): Boolean {
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ public class AndroidRenameProcessor : RenamePsiElementProcessor() {
|
||||
newName: String,
|
||||
allRenames: MutableMap<PsiElement, String>
|
||||
) {
|
||||
val oldName = field.getName()
|
||||
val oldName = field.getName()!!
|
||||
val processor = ServiceManager.getService(field.getProject(), javaClass<AndroidUIXmlProcessor>())
|
||||
renameSyntheticProperties(allRenames, newName, oldName, processor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user