[kotlin][cache] ResolutionAnchorCacheService: cleanup code

^KTIJ-21890

GitOrigin-RevId: 3da6fa727b56c966851ac87c14366f07d6eee1bd
This commit is contained in:
Dmitrii Gridin
2022-09-15 10:56:50 +02:00
committed by intellij-monorepo-bot
parent 37819f53e9
commit 3756ef2117

View File

@@ -1,8 +1,10 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.caches.resolve
import com.intellij.openapi.components.*
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.project.Project
import com.intellij.psi.util.CachedValueProvider
@@ -74,7 +76,8 @@ class ResolutionAnchorCacheServiceImpl(
getLibraryDependencies(libraryDependency).libraries
}
}
allTransitiveLibraryDependencies.mapNotNull { resolutionAnchorsForLibraries[it] }.toSet()
allTransitiveLibraryDependencies.mapNotNullTo(mutableSetOf()) { resolutionAnchorsForLibraries[it] }
}
}