From e3cda8c5a39f1a932d85dcc471e18b605107abea Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Wed, 14 Jul 2021 11:54:18 +0100 Subject: [PATCH 1/2] Redundant package qualifier in Gradle build script. Signed-off-by: Kenneth J. Shackleton --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 309cbaa718..00911cd1f3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -173,7 +173,7 @@ allprojects { } configure { version.set(Versions.KTLINT.version) - disabledRules.set(kotlin.collections.setOf("import-ordering", "indent")) + disabledRules.set(setOf("import-ordering", "indent")) reporters { reporter(ReporterType.HTML) } From a905783ef2288c3bc9e877ad36600c2f0a36f3b4 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Wed, 14 Jul 2021 11:55:35 +0100 Subject: [PATCH 2/2] Redundant Unit return in mock. Signed-off-by: Kenneth J. Shackleton --- .../test/kotlin/com/bloomberg/selekt/SQLBlobInputStreamTest.kt | 1 - .../test/kotlin/com/bloomberg/selekt/SQLBlobOutputStreamTest.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobInputStreamTest.kt b/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobInputStreamTest.kt index 9882c80a2a..3e4878a154 100644 --- a/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobInputStreamTest.kt +++ b/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobInputStreamTest.kt @@ -156,7 +156,6 @@ internal class SQLBlobInputStreamTest { whenever(size) doReturn expectedSize whenever(read(any(), any(), any(), any())).doAnswer { requireNotNull(it.arguments[1] as? ByteArray)[0] = expectedByte - Unit } } BlobInputStream(blob).use { diff --git a/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobOutputStreamTest.kt b/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobOutputStreamTest.kt index 79bc8d8109..7ca313245f 100644 --- a/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobOutputStreamTest.kt +++ b/Lib/src/test/kotlin/com/bloomberg/selekt/SQLBlobOutputStreamTest.kt @@ -122,7 +122,6 @@ internal class SQLBlobOutputStreamTest { whenever(size) doReturn expectedSize whenever(read(any(), any(), any(), any())).doAnswer { requireNotNull(it.arguments[1] as? ByteArray)[0] = expectedByte - Unit } } BlobOutputStream(blob).use {