aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-06-01 12:27:30 +0200
committerGitHub <noreply@github.com>2023-06-01 12:27:30 +0200
commitd680b14ee033da5b7edf2406c35a93583a8f8eed (patch)
tree1bcd503becfb987bf59f065455e5cc631e1b4b67 /plugins/base/src/main/kotlin/translators/psi
parente8254e5f1cd7a73e784add4eea5302918c8541dc (diff)
downloaddokka-d680b14ee033da5b7edf2406c35a93583a8f8eed.tar.gz
dokka-d680b14ee033da5b7edf2406c35a93583a8f8eed.tar.bz2
dokka-d680b14ee033da5b7edf2406c35a93583a8f8eed.zip
Multi-param Java methods should not qualify for a setter (#3002)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/PsiAccessorConventionUtil.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/PsiAccessorConventionUtil.kt b/plugins/base/src/main/kotlin/translators/psi/PsiAccessorConventionUtil.kt
index 2ab70843..3c1cb2cf 100644
--- a/plugins/base/src/main/kotlin/translators/psi/PsiAccessorConventionUtil.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/PsiAccessorConventionUtil.kt
@@ -82,7 +82,7 @@ internal fun PsiMethod.isGetterFor(field: PsiField): Boolean {
}
internal fun PsiMethod.isSetterFor(field: PsiField): Boolean {
- return parameterList.getParameter(0)?.type == field.type
+ return parameterList.getParameter(0)?.type == field.type && parameterList.getParametersCount() == 1
}
internal fun Visibility.isPublicAPI() = when(this) {