From aee2509bf2afcec324dc52ede18d2c08f58cdde5 Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Fri, 9 Sep 2016 11:29:12 +0300 Subject: [PATCH] Minor. Replace lambdas with callable references in LazyJavaClassMemberScope --- .../lazy/descriptors/LazyJavaClassMemberScope.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/descriptor.loader.java/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaClassMemberScope.kt b/core/descriptor.loader.java/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaClassMemberScope.kt index d759ac8dfdd..eae7cbcee4a 100644 --- a/core/descriptor.loader.java/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaClassMemberScope.kt +++ b/core/descriptor.loader.java/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaClassMemberScope.kt @@ -258,14 +258,14 @@ class LazyJavaClassMemberScope( name, functionsFromSupertypes, emptyList(), ownerDescriptor, ErrorReporter.DO_NOTHING) // add declarations - addOverriddenBuiltinMethods(name, result, mergedFunctionFromSuperTypes, result) { - searchMethodsByNameWithoutBuiltinMagic(it) - } + addOverriddenBuiltinMethods( + name, result, mergedFunctionFromSuperTypes, result, + this::searchMethodsByNameWithoutBuiltinMagic) // add from super types - addOverriddenBuiltinMethods(name, result, mergedFunctionFromSuperTypes, specialBuiltinsFromSuperTypes) { - searchMethodsInSupertypesWithoutBuiltinMagic(it) - } + addOverriddenBuiltinMethods( + name, result, mergedFunctionFromSuperTypes, specialBuiltinsFromSuperTypes, + this::searchMethodsInSupertypesWithoutBuiltinMagic) val visibleFunctionsFromSupertypes = functionsFromSupertypes.filter { isVisibleAsFunctionInCurrentClass(it) } + specialBuiltinsFromSuperTypes