Skip to content

Commit

Permalink
fix: deprecated API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ly-chn committed Jan 26, 2024
1 parent de9dce2 commit bd2b625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/kim/nzxy/spel/SpELConfigService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SpELConfigService {
return CachedValuesManager.getManager(project).getCachedValue(project) {
val dependencies = SmartList<Any>(PsiModificationTracker.MODIFICATION_COUNT)
val allKeys = HashMap<String, SpELInfo>()
for (module in project.getComponent(ModuleManager::class.java).modules) {
for (module in ModuleManager.getInstance(project).modules) {
for (sourceRoot in ModuleRootManager.getInstance(module).sourceRoots) {
sourceRoot.findFileByRelativePath(ConfigJsonUtil.FILENAME)?.let {
dependencies.add(it)
Expand Down

0 comments on commit bd2b625

Please sign in to comment.