User: rednesto Date: 13 Sep 24 11:57 Revision: 560c78abc41bc6cb9213c319122a49351a3d5a5e Summary: Fix internal API usage in external annotations resolver In later versions findLibraryEntity becomes internal, resolve seems to be the correct method to use here TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9685&personal=false Index: src/main/kotlin/translations/identification/TranslationExternalAnnotationsArtifactsResolver.kt =================================================================== --- src/main/kotlin/translations/identification/TranslationExternalAnnotationsArtifactsResolver.kt (revision 9ab7829cbf3d23aaf089a53127f667b201f79bbb) +++ src/main/kotlin/translations/identification/TranslationExternalAnnotationsArtifactsResolver.kt (revision 560c78abc41bc6cb9213c319122a49351a3d5a5e) @@ -46,7 +46,6 @@ import com.intellij.platform.workspace.jps.entities.modifyEntity import com.intellij.platform.workspace.storage.MutableEntityStorage import com.intellij.workspaceModel.ide.impl.legacyBridge.library.LibraryBridge -import com.intellij.workspaceModel.ide.impl.legacyBridge.library.ProjectLibraryTableBridgeImpl.Companion.findLibraryEntity import org.jetbrains.concurrency.AsyncPromise import org.jetbrains.concurrency.Promise import org.jetbrains.concurrency.resolvedPromise @@ -83,7 +82,7 @@ val annotationsPath = findAnnotationsPath(false) ?: findAnnotationsPath(true) ?: return false - val libraryEntity = diff.findLibraryEntity(library) ?: return true + val libraryEntity = diff.resolve(library.libraryId) ?: return true val vfUrlManager = WorkspaceModel.getInstance(project).getVirtualFileUrlManager() val newUrl = annotationsPath.toVirtualFileUrl(vfUrlManager) val annotationsRootType = LibraryRootTypeId(AnnotationOrderRootType.ANNOTATIONS_ID)