Library update tool: general review comments (IJ-CR-145251)

GitOrigin-RevId: a22f2f205dec7762fbd5b0612535fd96e9fb548d
This commit is contained in:
Ilya Muradyan
2024-09-27 07:21:47 +02:00
committed by intellij-monorepo-bot
parent 4486aa89cb
commit 8ccfbf44d4
2 changed files with 2 additions and 2 deletions

View File

@@ -587,6 +587,6 @@ class RepositoryLibraryUtils(private val project: Project, private val cs: Corou
private fun LibraryPropertiesEntity.isRepositoryLibraryProperties() = propertiesXmlTag != null && REPOSITORY_LIBRARY_KIND.kindId == library.typeId?.name
private fun LibraryPropertiesEntity.toRepositoryLibraryProperties(): RepositoryLibraryProperties? {
fun LibraryPropertiesEntity.toRepositoryLibraryProperties(): RepositoryLibraryProperties? {
return if (isRepositoryLibraryProperties()) deserialize(JDOMUtil.load(checkNotNull(propertiesXmlTag))) else null
}

View File

@@ -215,7 +215,7 @@ class LibraryBridgeImpl(
companion object {
private val libraryRootTypes = ConcurrentFactoryMap.createMap<String, LibraryRootTypeId> { LibraryRootTypeId(it) }
internal fun OrderRootType.toLibraryRootType(): LibraryRootTypeId = when (this) {
fun OrderRootType.toLibraryRootType(): LibraryRootTypeId = when (this) {
OrderRootType.CLASSES -> LibraryRootTypeId.COMPILED
OrderRootType.SOURCES -> LibraryRootTypeId.SOURCES
else -> libraryRootTypes[name()]!!