Skip to content

Commit

Permalink
Add @jvmoverloads to kotlin generation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinCombrink committed May 31, 2024
1 parent 6872c3b commit 2f19ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pigeon/lib/kotlin_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ class KotlinGenerator extends StructuredGenerator<KotlinOptions> {
indent.writeln(
'/** Sets up an instance of `$apiName` to handle messages through the `binaryMessenger`. */');
indent.write(
'fun setUp(binaryMessenger: BinaryMessenger, api: $apiName?, messageChannelSuffix: String = "") ');
'@JvmOverloads fun setUp(binaryMessenger: BinaryMessenger, api: $apiName?, messageChannelSuffix: String = "") ');
indent.addScoped('{', '}', () {
indent.writeln(
r'val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else ""');
Expand Down

0 comments on commit 2f19ca1

Please sign in to comment.