Minor. Unused declarations removed
This commit is contained in:
+2
-5
@@ -90,7 +90,6 @@ class LazyJavaTypeResolver(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private class LazyStarProjection(
|
private class LazyStarProjection(
|
||||||
c: LazyJavaResolverContext,
|
|
||||||
val typeParameter: TypeParameterDescriptor,
|
val typeParameter: TypeParameterDescriptor,
|
||||||
val attr: JavaTypeAttributes
|
val attr: JavaTypeAttributes
|
||||||
) : TypeProjectionBase() {
|
) : TypeProjectionBase() {
|
||||||
@@ -198,7 +197,7 @@ class LazyJavaTypeResolver(
|
|||||||
TypeProjectionImpl(projectionKind, KotlinBuiltIns.getInstance().getNullableAnyType())
|
TypeProjectionImpl(projectionKind, KotlinBuiltIns.getInstance().getNullableAnyType())
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LazyStarProjection(c, parameter, attr)
|
LazyStarProjection(parameter, attr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isConstructorTypeParameter()) {
|
if (isConstructorTypeParameter()) {
|
||||||
@@ -229,7 +228,7 @@ class LazyJavaTypeResolver(
|
|||||||
is JavaWildcardType -> {
|
is JavaWildcardType -> {
|
||||||
val bound = javaType.getBound()
|
val bound = javaType.getBound()
|
||||||
if (bound == null)
|
if (bound == null)
|
||||||
LazyStarProjection(c, typeParameter, attr)
|
LazyStarProjection(typeParameter, attr)
|
||||||
else {
|
else {
|
||||||
var projectionKind = if (javaType.isExtends()) OUT_VARIANCE else IN_VARIANCE
|
var projectionKind = if (javaType.isExtends()) OUT_VARIANCE else IN_VARIANCE
|
||||||
if (projectionKind == typeParameter.getVariance()) {
|
if (projectionKind == typeParameter.getVariance()) {
|
||||||
@@ -337,8 +336,6 @@ trait JavaTypeAttributes {
|
|||||||
val annotations: Annotations
|
val annotations: Annotations
|
||||||
}
|
}
|
||||||
|
|
||||||
fun JavaTypeAttributes.isFlexible() = flexibility != INFLEXIBLE
|
|
||||||
|
|
||||||
enum class JavaTypeFlexibility {
|
enum class JavaTypeFlexibility {
|
||||||
INFLEXIBLE
|
INFLEXIBLE
|
||||||
FLEXIBLE_UPPER_BOUND
|
FLEXIBLE_UPPER_BOUND
|
||||||
|
|||||||
Reference in New Issue
Block a user