Skip to content

Commit 611d6b0

Browse files
committed
Fix: In the DAO argument usage check, the conditions for checking element class types have been changed.
1 parent 22734c3 commit 611d6b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/org/domaframework/doma/intellij/inspection/dao/inspector/DaoMethodVariableInspector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class DaoMethodVariableInspector : AbstractBaseJavaLocalInspectionTool() {
9494
object : PsiRecursiveElementVisitor() {
9595
// Recursively explore child elements in a file with PsiRecursiveElementVisitor.
9696
override fun visitElement(element: PsiElement) {
97-
if (element !is SqlElPrimaryExpr) {
97+
if (element is SqlElPrimaryExpr) {
9898
iterator = args.minus(elements.toSet()).iterator()
9999
while (iterator.hasNext()) {
100100
val arg = iterator.next()

0 commit comments

Comments
 (0)