Skip to content

Commit 7b198da

Browse files
committed
Improve code quality
1 parent 125797c commit 7b198da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/kotlin-extractor2/src/main/kotlin/entities/Expression.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ OLD: KE1
224224
private fun KaFunctionSymbol.hasMatchingNames(
225225
name: CallableId,
226226
extensionReceiverClassName: ClassId? = null,
227-
nullability: KaTypeNullability = KaTypeNullability.UNKNOWN,
227+
nullability: KaTypeNullability? = null,
228228
): Boolean {
229229

230230
if (this.callableId != name)
@@ -236,7 +236,9 @@ private fun KaFunctionSymbol.hasMatchingNames(
236236
receiverType.symbol?.classId == extensionReceiverClassName
237237
}
238238

239-
return receiverType == null && extensionReceiverClassName == null
239+
return receiverType == null &&
240+
extensionReceiverClassName == null &&
241+
nullability == null
240242
}
241243

242244
private fun KaFunctionSymbol.hasName(

0 commit comments

Comments
 (0)