@@ -10,7 +10,6 @@ import com.intellij.lang.java.JavaLanguage
10
10
import com.intellij.openapi.application.runReadAction
11
11
import com.intellij.openapi.components.service
12
12
import com.intellij.openapi.project.Project
13
- import com.intellij.openapi.util.NlsSafe
14
13
import com.intellij.psi.PsiClass
15
14
import com.intellij.psi.PsiElement
16
15
import com.intellij.psi.PsiMethod
@@ -83,10 +82,10 @@ open class JavaTestContextProvider : ChatContextProvider {
83
82
open fun checkIsSpringRelated (creationContext : ChatCreationContext ) =
84
83
runReadAction { creationContext.element?.let { isSpringRelated(it) } ? : false }
85
84
86
- protected fun isService (fileName : @NlsSafe String? ) =
85
+ protected fun isService (fileName : String? ) =
87
86
fileName?.let { MvcUtil .isService(it, langFileSuffix()) } ? : false
88
87
89
- protected fun isController (fileName : @NlsSafe String? ) =
88
+ protected fun isController (fileName : String? ) =
90
89
fileName?.let { MvcUtil .isController(it, langFileSuffix()) } ? : false
91
90
92
91
@@ -103,8 +102,6 @@ open class JavaTestContextProvider : ChatContextProvider {
103
102
* and checks if the project uses JUnit 5 or JUnit 4. Based on the result, it sets the rule string
104
103
* accordingly. Finally, it adds the rule to the projectJunitCache and returns the rule string.
105
104
*/
106
- // todo: lookup module deps
107
- // val module = ModuleUtilCore.findModuleForPsiElement(sourceFile!!)
108
105
protected fun junitRule (project : Project ): String {
109
106
if (projectJunitCache.containsKey(project)) {
110
107
return projectJunitCache[project]!!
0 commit comments