mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
gradle: use proper delegate strategy
This commit is contained in:
+1
-1
@@ -162,7 +162,7 @@ class GradleNonCodeMembersContributor : NonCodeMembersContributor() {
|
||||
containingClass = aClass
|
||||
val closureParam = addAndGetParameter("configuration", GROOVY_LANG_CLOSURE, true)
|
||||
closureParam.putUserData(DELEGATES_TO_KEY, domainObjectFqn)
|
||||
closureParam.putUserData(DELEGATES_TO_STRATEGY_KEY, Closure.OWNER_FIRST)
|
||||
closureParam.putUserData(DELEGATES_TO_STRATEGY_KEY, Closure.DELEGATE_FIRST)
|
||||
|
||||
val method = aClass.findMethodsByName("create", true).firstOrNull { it.parameterList.parametersCount == argsCount }
|
||||
if (method != null) navigationElement = method
|
||||
|
||||
Reference in New Issue
Block a user