From 0c8f6a191560244ab8399dca5248a5f9e357b121 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 6 Oct 2023 22:27:23 +0200 Subject: [PATCH] chore: Make `OkHttpClientHelper` the first class in the file `OkHttpClientHelper` should go frist as the file is named after it. Signed-off-by: Sebastian Schuberth --- utils/ort/src/main/kotlin/OkHttpClientHelper.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/ort/src/main/kotlin/OkHttpClientHelper.kt b/utils/ort/src/main/kotlin/OkHttpClientHelper.kt index 3386ea91b42f3..c6e16ec7a53da 100644 --- a/utils/ort/src/main/kotlin/OkHttpClientHelper.kt +++ b/utils/ort/src/main/kotlin/OkHttpClientHelper.kt @@ -55,11 +55,6 @@ import org.ossreviewtoolkit.utils.common.withoutPrefix typealias BuilderConfiguration = OkHttpClient.Builder.() -> Unit -/** - * An HTTP-specific download error that enriches an [IOException] with an additional HTTP error code. - */ -class HttpDownloadError(val code: Int, message: String) : IOException("$message (HTTP code $code)") - /** * A helper class to manage OkHttp instances backed by distinct cache directories. */ @@ -81,6 +76,11 @@ object OkHttpClientHelper { } ?: okHttpClient } +/** + * An HTTP-specific download error that enriches an [IOException] with an additional HTTP error code. + */ +class HttpDownloadError(val code: Int, message: String) : IOException("$message (HTTP code $code)") + private val logger = loggerOf(MethodHandles.lookup().lookupClass()) private const val CACHE_DIRECTORY = "cache/http"