Skip to content

Commit 3190403

Browse files
committed
refactor(java): comment out unused module data retrieval code in JavaBuildSystemProvider
1 parent 5e82be8 commit 3190403

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

java/src/main/kotlin/cc/unitmesh/idea/provider/JavaBuildSystemProvider.kt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@ open class JavaBuildSystemProvider : BuildSystemProvider() {
7777
}
7878
}
7979

80-
ModuleUtilCore.findModuleForFile(psiFile)?.also {
81-
val moduleData = CachedModuleDataFinder.findModuleData(it)
82-
val libDepData = ExternalSystemApiUtil.findAllRecursively<LibraryDependencyData?>(
83-
moduleData,
84-
ProjectKeys.LIBRARY_DEPENDENCY
85-
)
86-
87-
results += libDepData.mapNotNull { node ->
88-
val target = node.data.target
89-
val namespace = target.groupId ?: return@mapNotNull null
90-
val name = target.artifactId ?: return@mapNotNull null
91-
val version = target.version ?: return@mapNotNull null
92-
93-
DevPackage("maven", namespace, name, version)
94-
}
95-
}
80+
// ModuleUtilCore.findModuleForFile(psiFile)?.also {
81+
// val moduleData = CachedModuleDataFinder.findModuleData(it)
82+
// val libDepData = ExternalSystemApiUtil.findAllRecursively<LibraryDependencyData?>(
83+
// moduleData,
84+
// ProjectKeys.LIBRARY_DEPENDENCY
85+
// )
86+
//
87+
// results += libDepData.mapNotNull { node ->
88+
// val target = node.data.target
89+
// val namespace = target.groupId ?: return@mapNotNull null
90+
// val name = target.artifactId ?: return@mapNotNull null
91+
// val version = target.version ?: return@mapNotNull null
92+
//
93+
// DevPackage("maven", namespace, name, version)
94+
// }
95+
// }
9696

9797

9898
return results

0 commit comments

Comments
 (0)