Drop deprecated K*Function interfaces
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2010-2015 JetBrains s.r.o.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package kotlin.reflect
|
|
||||||
|
|
||||||
@Deprecated("This class will be dropped after M13 because it was a part of an overly complex API. Use KFunction instead")
|
|
||||||
public interface KTopLevelFunction<out R> : KFunction<R>
|
|
||||||
|
|
||||||
@Deprecated("This class will be dropped after M13 because it was a part of an overly complex API. Use KFunction instead")
|
|
||||||
public interface KTopLevelExtensionFunction<in E, out R>
|
|
||||||
|
|
||||||
@Deprecated("This class will be dropped after M13 because it was a part of an overly complex API. Use KFunction instead")
|
|
||||||
public interface KMemberFunction<in T, out R> : KFunction<R>
|
|
||||||
|
|
||||||
@Deprecated("This class will be dropped after M13 because it was a part of an overly complex API. Use KFunction instead")
|
|
||||||
public interface KLocalFunction<out R> : KFunction<R>
|
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@file:Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")
|
|
||||||
package kotlin.reflect.jvm.internal
|
package kotlin.reflect.jvm.internal
|
||||||
|
|
||||||
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
||||||
@@ -24,7 +23,8 @@ import java.lang.reflect.Member
|
|||||||
import java.lang.reflect.Method
|
import java.lang.reflect.Method
|
||||||
import java.lang.reflect.Modifier
|
import java.lang.reflect.Modifier
|
||||||
import kotlin.jvm.internal.FunctionImpl
|
import kotlin.jvm.internal.FunctionImpl
|
||||||
import kotlin.reflect.*
|
import kotlin.reflect.KFunction
|
||||||
|
import kotlin.reflect.KotlinReflectionInternalError
|
||||||
import kotlin.reflect.jvm.internal.JvmFunctionSignature.*
|
import kotlin.reflect.jvm.internal.JvmFunctionSignature.*
|
||||||
|
|
||||||
internal open class KFunctionImpl protected constructor(
|
internal open class KFunctionImpl protected constructor(
|
||||||
@@ -32,8 +32,7 @@ internal open class KFunctionImpl protected constructor(
|
|||||||
name: String,
|
name: String,
|
||||||
signature: String,
|
signature: String,
|
||||||
descriptorInitialValue: FunctionDescriptor?
|
descriptorInitialValue: FunctionDescriptor?
|
||||||
) : KFunction<Any?>, KCallableImpl<Any?>, FunctionImpl(),
|
) : KFunction<Any?>, KCallableImpl<Any?>, FunctionImpl() {
|
||||||
KLocalFunction<Any?>, KMemberFunction<Any, Any?>, KTopLevelExtensionFunction<Any?, Any?>, KTopLevelFunction<Any?> {
|
|
||||||
constructor(container: KDeclarationContainerImpl, name: String, signature: String) : this(container, name, signature, null)
|
constructor(container: KDeclarationContainerImpl, name: String, signature: String) : this(container, name, signature, null)
|
||||||
|
|
||||||
constructor(container: KDeclarationContainerImpl, descriptor: FunctionDescriptor) : this(
|
constructor(container: KDeclarationContainerImpl, descriptor: FunctionDescriptor) : this(
|
||||||
|
|||||||
@@ -24,14 +24,7 @@ import java.lang.annotation.Annotation;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
public class FunctionReference extends FunctionImpl implements KFunction {
|
||||||
public class FunctionReference
|
|
||||||
extends FunctionImpl
|
|
||||||
implements KFunction,
|
|
||||||
KTopLevelFunction,
|
|
||||||
KMemberFunction,
|
|
||||||
KTopLevelExtensionFunction,
|
|
||||||
KLocalFunction {
|
|
||||||
private final int arity;
|
private final int arity;
|
||||||
|
|
||||||
public FunctionReference(int arity) {
|
public FunctionReference(int arity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user