diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/component/OciComponentBuilder.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/component/OciComponentBuilder.kt index 84a23eb1..2f8f36c4 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/component/OciComponentBuilder.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/component/OciComponentBuilder.kt @@ -132,9 +132,7 @@ internal class OciComponentBundleLayerDescriptorBuilder : Serializable { } } -private class SerializableInstant(val epochSecond: Long, val nano: Int) : Serializable { - override fun toString() = toInstant().toString() -} +private class SerializableInstant(val epochSecond: Long, val nano: Int) : Serializable private fun Instant.toSerializableInstant() = SerializableInstant(epochSecond, nano)