File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
main/kotlin/org/domaframework/doma/intellij/inspection/dao/inspector
test/kotlin/org/domaframework/doma/intellij/inspection/dao Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ import com.intellij.codeHighlighting.HighlightDisplayLevel
1919import com.intellij.codeInspection.AbstractBaseJavaLocalInspectionTool
2020import com.intellij.codeInspection.ProblemsHolder
2121import com.intellij.psi.PsiElementVisitor
22- import org.domaframework.doma.intellij.inspection.dao.visitor.UsedDaoMethodArgsInspectionVisitor
22+ import org.domaframework.doma.intellij.inspection.dao.visitor.UsedDaoMethodParamInspectionVisitor
2323
2424/* *
2525 * Check if DAO method arguments are used in the corresponding SQL file
2626 */
27- class UsedDaoMethodArgsInspection : AbstractBaseJavaLocalInspectionTool () {
27+ class UsedDaoMethodParamInspection : AbstractBaseJavaLocalInspectionTool () {
2828 override fun getDisplayName (): String = " Check usage of DAO method arguments"
2929
3030 override fun getShortName (): String = " org.domaframework.doma.intellij.variablechecker"
@@ -38,5 +38,5 @@ class UsedDaoMethodArgsInspection : AbstractBaseJavaLocalInspectionTool() {
3838 override fun buildVisitor (
3939 holder : ProblemsHolder ,
4040 isOnTheFly : Boolean ,
41- ): PsiElementVisitor = UsedDaoMethodArgsInspectionVisitor (holder)
41+ ): PsiElementVisitor = UsedDaoMethodParamInspectionVisitor (holder)
4242}
Original file line number Diff line number Diff line change 1616package org.domaframework.doma.intellij.inspection.dao
1717
1818import org.domaframework.doma.intellij.DomaSqlTest
19- import org.domaframework.doma.intellij.inspection.dao.inspector.DaoMethodReturnTypeVariableInspection
19+ import org.domaframework.doma.intellij.inspection.dao.inspector.DaoMethodReturnTypeInspection
2020
2121/* *
2222 * Test class for annotation return type check inspection.
@@ -40,7 +40,7 @@ class AnnotationReturnTypeCheckInspectionTest : DomaSqlTest() {
4040 // Entity classes
4141 addEntityJavaFile(" Packet.java" )
4242 addEntityJavaFile(" Pckt.java" )
43- myFixture.enableInspections(DaoMethodReturnTypeVariableInspection ())
43+ myFixture.enableInspections(DaoMethodReturnTypeInspection ())
4444 }
4545
4646 fun testUpdateAnnotationReturnTypeCheckProcessor () {
Original file line number Diff line number Diff line change 1616package org.domaframework.doma.intellij.inspection.dao
1717
1818import org.domaframework.doma.intellij.DomaSqlTest
19- import org.domaframework.doma.intellij.inspection.dao.inspector.UsedDaoMethodArgsVariableInspection
19+ import org.domaframework.doma.intellij.inspection.dao.inspector.UsedDaoMethodParamInspection
2020
2121/* *
2222 * Test class to verify whether DAO method arguments are used
@@ -37,7 +37,7 @@ class DomaUseVariableTest : DomaSqlTest() {
3737 " $testDaoName /noErrorWhenUsedInFunctionParameters.sql" ,
3838 " $testDaoName /duplicateForDirectiveDefinitionNames.sql" ,
3939 )
40- myFixture.enableInspections(UsedDaoMethodArgsVariableInspection ())
40+ myFixture.enableInspections(UsedDaoMethodParamInspection ())
4141 }
4242
4343 /* *
You can’t perform that action at this time.
0 commit comments