mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
Library update tool: general review comments (IJ-CR-145251)
GitOrigin-RevId: a22f2f205dec7762fbd5b0612535fd96e9fb548d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4486aa89cb
commit
8ccfbf44d4
@@ -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
|
||||
}
|
||||
|
||||
@@ -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()]!!
|
||||
|
||||
Reference in New Issue
Block a user