We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2897dd7 commit 02979dbCopy full SHA for 02979db
java/src/main/kotlin/cc/unitmesh/idea/DtModelExt.kt
@@ -43,7 +43,12 @@ fun DtClass.Companion.fromPsi(originClass: PsiClass): DtClass {
43
44
val methods = psiClass.methods.map { method ->
45
// if method is getter or setter, skip
46
- if (method.name.startsWith("get") || method.name.startsWith("set")) {
+ val isGetter = method.name.startsWith("get")
47
+ && method.parameters.isEmpty()
48
+ && !(method.name.contains("By") || method.name.contains("With") || method.name.contains("And"))
49
+
50
+ val isSetter = method.name.startsWith("set") && method.parameters.size == 1
51
+ if (isGetter || isSetter) {
52
return@map null
53
}
54
0 commit comments