From d78ce6f656745eb460dbbfbd8dd3c0bbedadc2c0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 01:10:17 +0000 Subject: [PATCH 1/2] Update dependency me.saket.bytesize:bytesize to v2.2.0 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2b986bd5..2fe780f9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ clikt = "com.github.ajalt.clikt:clikt:5.1.0" junit = "junit:junit:4.13.2" assertk = "com.willowtreeapps.assertk:assertk:0.28.1" okio = "com.squareup.okio:okio:3.17.0" -bytesize = "me.saket.bytesize:bytesize:2.1.0" +bytesize = "me.saket.bytesize:bytesize:2.2.0" asm = "org.ow2.asm:asm:9.9.1" diffUtils = "io.github.java-diff-utils:java-diff-utils:4.16" picnic = "com.jakewharton.picnic:picnic:0.7.0" From 142dc3faf9907fb5f937ef1a2ecfd770123a5778 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Thu, 26 Mar 2026 21:32:55 -0400 Subject: [PATCH 2/2] Remove redundant extension --- .../com/jakewharton/diffuse/diff/SizeExtensions.kt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/reports/src/main/kotlin/com/jakewharton/diffuse/diff/SizeExtensions.kt b/reports/src/main/kotlin/com/jakewharton/diffuse/diff/SizeExtensions.kt index 36c74402..274fe171 100644 --- a/reports/src/main/kotlin/com/jakewharton/diffuse/diff/SizeExtensions.kt +++ b/reports/src/main/kotlin/com/jakewharton/diffuse/diff/SizeExtensions.kt @@ -6,7 +6,7 @@ import me.saket.bytesize.ByteSize import me.saket.bytesize.DecimalBitSize import me.saket.bytesize.DecimalByteSize -/** TODO: https://github.com/saket/byte-size/pull/21 */ +/** TODO: https://github.com/saket/byte-size/issues/22 */ internal val ByteSize.absoluteValue: ByteSize get() = when (this) { @@ -14,12 +14,3 @@ internal val ByteSize.absoluteValue: ByteSize is BinaryByteSize -> BinaryByteSize(inWholeBytes.absoluteValue) is DecimalByteSize -> DecimalByteSize(inWholeBytes.absoluteValue) } - -/** TODO: https://github.com/saket/byte-size/pull/20 */ -@Suppress("NOTHING_TO_INLINE") -internal inline operator fun ByteSize.unaryMinus(): ByteSize = - when (this) { - is DecimalBitSize -> DecimalBitSize(-inWholeBits) - is BinaryByteSize -> BinaryByteSize(-inWholeBytes) - is DecimalByteSize -> DecimalByteSize(-inWholeBytes) - }