Skip to content

Commit

Permalink
chore: Do not used the named with parameter for @Serializable
Browse files Browse the repository at this point in the history
Align on not using `with =` as it is the only parameter for the
annotation anyway.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Aug 10, 2024
1 parent 490f003 commit f6ba8bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/package-managers/bower/src/main/kotlin/Model.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal data class PackageInfo(
@Serializable
internal data class PackageMeta(
val name: String? = null,
@Serializable(with = AuthorListSerializer::class)
@Serializable(AuthorListSerializer::class)
val authors: List<Author> = emptyList(),
val description: String? = null,
val license: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import kotlinx.serialization.json.jsonPrimitive
internal data class Podspec(
val name: String = "",
val version: String = "",
@Serializable(with = LicenseSerializer::class)
@Serializable(LicenseSerializer::class)
val license: String = "",
val summary: String = "",
val homepage: String = "",
Expand Down

0 comments on commit f6ba8bc

Please sign in to comment.