Stop using deprecated APIs
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public class LazyJavaClassMemberScope(
|
||||
|
||||
internal val constructors = c.storageManager.createLazyValue {
|
||||
val constructors = jClass.getConstructors()
|
||||
val result = ArrayList<JavaConstructorDescriptor>(constructors.size)
|
||||
val result = ArrayList<JavaConstructorDescriptor>(constructors.size())
|
||||
for (constructor in constructors) {
|
||||
val descriptor = resolveConstructor(constructor)
|
||||
result.add(descriptor)
|
||||
|
||||
+1
-1
@@ -207,7 +207,7 @@ class LazyJavaTypeResolver(
|
||||
return javaType.getTypeArguments().withIndices().map {
|
||||
javaTypeParameter ->
|
||||
val (i, t) = javaTypeParameter
|
||||
val parameter = if (i >= typeParameters.size)
|
||||
val parameter = if (i >= typeParameters.size())
|
||||
ErrorUtils.createErrorTypeParameter(i, "#$i for ${typeConstructor}")
|
||||
else typeParameters[i]
|
||||
transformToTypeProjection(t, howTheProjectionIsUsed.toAttributes(), parameter)
|
||||
|
||||
Reference in New Issue
Block a user