Fix inspections in kotlin.jvm.internal runtime classes
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.Map;
|
||||
* All methods from KCallable should be implemented here and should delegate to the actual implementation, loaded dynamically
|
||||
* and stored in the {@link CallableReference#reflected} field.
|
||||
*/
|
||||
@SuppressWarnings({"unchecked", "NullableProblems"})
|
||||
@SuppressWarnings({"unchecked", "NullableProblems", "rawtypes"})
|
||||
public abstract class CallableReference implements KCallable, Serializable {
|
||||
// This field is not volatile intentionally:
|
||||
// 1) It's fine if the value is computed multiple times in different threads;
|
||||
|
||||
@@ -11,7 +11,7 @@ import kotlin.jvm.functions.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@SuppressWarnings({"unused", "rawtypes"})
|
||||
@Deprecated
|
||||
@kotlin.Deprecated(message = "This class is no longer supported, do not use it.", level = DeprecationLevel.ERROR)
|
||||
public abstract class FunctionImpl
|
||||
|
||||
@@ -9,6 +9,7 @@ import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KFunction;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class FunctionReference extends CallableReference implements FunctionBase, KFunction {
|
||||
private final int arity;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class FunctionReferenceImpl extends FunctionReference {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -8,6 +8,7 @@ package kotlin.jvm.internal;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KMutableProperty;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract class MutablePropertyReference extends PropertyReference implements KMutableProperty {
|
||||
public MutablePropertyReference() {
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KMutableProperty0;
|
||||
import kotlin.reflect.KProperty0;
|
||||
|
||||
@SuppressWarnings({"rawtypes", "unused", "NullableProblems"})
|
||||
public abstract class MutablePropertyReference0 extends MutablePropertyReference implements KMutableProperty0 {
|
||||
public MutablePropertyReference0() {
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class MutablePropertyReference0Impl extends MutablePropertyReference0 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -10,7 +10,7 @@ import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KMutableProperty1;
|
||||
import kotlin.reflect.KProperty1;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "rawtypes", "unused", "NullableProblems"})
|
||||
public abstract class MutablePropertyReference1 extends MutablePropertyReference implements KMutableProperty1 {
|
||||
public MutablePropertyReference1() {
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class MutablePropertyReference1Impl extends MutablePropertyReference1 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -10,7 +10,7 @@ import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KMutableProperty2;
|
||||
import kotlin.reflect.KProperty2;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "rawtypes", "NullableProblems"})
|
||||
public abstract class MutablePropertyReference2 extends MutablePropertyReference implements KMutableProperty2 {
|
||||
@Override
|
||||
protected KCallable computeReflected() {
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class MutablePropertyReference2Impl extends MutablePropertyReference2 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -9,6 +9,7 @@ import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KProperty;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public abstract class PropertyReference extends CallableReference implements KProperty {
|
||||
public PropertyReference() {
|
||||
super();
|
||||
|
||||
@@ -9,6 +9,7 @@ import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KProperty0;
|
||||
|
||||
@SuppressWarnings({"rawtypes", "NullableProblems", "unused"})
|
||||
public abstract class PropertyReference0 extends PropertyReference implements KProperty0 {
|
||||
public PropertyReference0() {
|
||||
super();
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class PropertyReference0Impl extends PropertyReference0 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -9,7 +9,7 @@ import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KProperty1;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "rawtypes", "unused", "NullableProblems"})
|
||||
public abstract class PropertyReference1 extends PropertyReference implements KProperty1 {
|
||||
public PropertyReference1() {
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings("NullableProblems")
|
||||
public class PropertyReference1Impl extends PropertyReference1 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -9,7 +9,7 @@ import kotlin.SinceKotlin;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KProperty2;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "rawtypes", "NullableProblems"})
|
||||
public abstract class PropertyReference2 extends PropertyReference implements KProperty2 {
|
||||
@Override
|
||||
protected KCallable computeReflected() {
|
||||
|
||||
@@ -7,6 +7,7 @@ package kotlin.jvm.internal;
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
@SuppressWarnings({"unused", "NullableProblems"})
|
||||
public class PropertyReference2Impl extends PropertyReference2 {
|
||||
private final KDeclarationContainer owner;
|
||||
private final String name;
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:Suppress("unused")
|
||||
|
||||
package kotlin.jvm.internal
|
||||
|
||||
import kotlin.reflect.KDeclarationContainer
|
||||
@@ -26,4 +28,4 @@ open class MutableLocalVariableReference : MutablePropertyReference0() {
|
||||
override fun get(): Any? = notSupportedError()
|
||||
|
||||
override fun set(value: Any?): Unit = notSupportedError()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user