diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-06-01 12:27:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 12:27:30 +0200 |
commit | d680b14ee033da5b7edf2406c35a93583a8f8eed (patch) | |
tree | 1bcd503becfb987bf59f065455e5cc631e1b4b67 /plugins/base/src/main/kotlin/translators/psi | |
parent | e8254e5f1cd7a73e784add4eea5302918c8541dc (diff) | |
download | dokka-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.kt | 2 |
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) { |