From 81c1a4089940fb320fa281bdeabcdc2ba96d6507 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 30 Jan 2023 23:23:27 -0800 Subject: [PATCH] Constants is now an object instead of a class --- .../net/thauvin/erik/bitly/Constants.kt | 44 ++++++------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/src/main/kotlin/net/thauvin/erik/bitly/Constants.kt b/src/main/kotlin/net/thauvin/erik/bitly/Constants.kt index 9177859..62ef863 100644 --- a/src/main/kotlin/net/thauvin/erik/bitly/Constants.kt +++ b/src/main/kotlin/net/thauvin/erik/bitly/Constants.kt @@ -32,40 +32,22 @@ package net.thauvin.erik.bitly /** Provides the constants for this package. */ -open class Constants private constructor() { - companion object Constants { - /** - * The Bitly API base URL. - * - * @value `https://api-ssl.bitly.com/v4` - */ - const val API_BASE_URL = "https://api-ssl.bitly.com/v4" +object Constants { + /** The Bitly API base URL. */ + const val API_BASE_URL = "https://api-ssl.bitly.com/v4" - /** - * The API access token environment variable. - * - * @value `BITLY_ACCESS_TOKEN` - */ - const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN" + /** The API access token environment variable. */ + const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN" - /** Empty String. */ - const val EMPTY = "" + /** Empty String. */ + const val EMPTY = "" - /** Empty JSON Object. */ - const val EMPTY_JSON = "{}" + /** Empty JSON Object. */ + const val EMPTY_JSON = "{}" - /** - * False - * - * @value `false` - */ - const val FALSE = false.toString() + /** False */ + const val FALSE = false.toString() - /** - * True - * - * @value `true` - */ - const val TRUE = true.toString() - } + /** True */ + const val TRUE = true.toString() }