Skip to content

Commit 57f5072

Browse files
committed
Revert formatting change
1 parent bbf4563 commit 57f5072

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,17 +1196,16 @@ open class KotlinUsesExtractor(
11961196
// Look for an exact type match...
11971197
javaClass.declarations.findSubType<IrFunction> { decl ->
11981198
decl.name.asString() == jvmName &&
1199-
decl.valueParameters.size == f.valueParameters.size &&
1200-
// Note matching by classifier not the whole type so that generic arguments are allowed to differ,
1201-
// as they always will for method type parameters occurring in parameter types (e.g. <T> toArray(T[] array)
1202-
// Differing only by nullability would also be insignificant if it came up.
1203-
decl.valueParameters.zip(f.valueParameters)
1204-
.all { p -> p.first.type.classifierOrNull == p.second.type.classifierOrNull }
1199+
decl.valueParameters.size == f.valueParameters.size &&
1200+
// Note matching by classifier not the whole type so that generic arguments are allowed to differ,
1201+
// as they always will for method type parameters occurring in parameter types (e.g. <T> toArray(T[] array)
1202+
// Differing only by nullability would also be insignificant if it came up.
1203+
decl.valueParameters.zip(f.valueParameters).all { p -> p.first.type.classifierOrNull == p.second.type.classifierOrNull }
12051204
} ?:
12061205
// Or if there is none, look for the only viable overload
12071206
javaClass.declarations.singleOrNullSubType<IrFunction> { decl ->
12081207
decl.name.asString() == jvmName &&
1209-
decl.valueParameters.size == f.valueParameters.size
1208+
decl.valueParameters.size == f.valueParameters.size
12101209
} ?:
12111210
// Or check property accessors:
12121211
(f.propertyIfAccessor as? IrProperty)?.let { kotlinProp ->

0 commit comments

Comments
 (0)