Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1a0a96

Browse files
committed
Kotlin: Remove a default argument
It was only defaulted in one case, and it's probably clearer to be explicit.
1 parent c125c1a commit d1a0a96

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ open class KotlinFileExtractor(
8989
is IrFile -> return "@\"${element.path};sourcefile\"" // todo: remove copy-pasted code
9090
is IrClass -> return getClassLabel(element, listOf()).classLabel
9191
is IrTypeParameter -> return getTypeParameterLabel(element)
92-
is IrFunction -> return getFunctionLabel(element)
92+
is IrFunction -> return getFunctionLabel(element, null)
9393
is IrValueParameter -> return getValueParameterLabel(element, null)
9494
is IrProperty -> return getPropertyLabel(element)
9595
is IrField -> return getFieldLabel(element)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ class X {
634634
else -> null
635635
}
636636

637-
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>? = null) : String {
637+
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>?) : String {
638638
return getFunctionLabel(f, null, classTypeArgsIncludingOuterClasses)
639639
}
640640

0 commit comments

Comments
 (0)