Make private secondary constructors the primaries

This commit is contained in:
JeremyStar™ 2024-12-13 18:31:17 +01:00
parent fe2edbf3c1
commit 9b5d12203f
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
6 changed files with 11 additions and 47 deletions

View file

@ -30,7 +30,7 @@ import de.staropensource.engine.logging.Logger
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
class Engine { class Engine private constructor() {
/** /**
* Companion class of [Engine]. * Companion class of [Engine].
* *
@ -47,11 +47,4 @@ class Engine {
Logger.instance.info("Initializing") Logger.instance.info("Initializing")
} }
} }
/**
* Initializes this class.
*
* @since v1-alpha10
*/
private constructor()
} }

View file

@ -20,11 +20,10 @@
package de.staropensource.engine.newsubprj; package de.staropensource.engine.newsubprj;
class Example { /**
/** * An example class.
* Initializes this class. *
* * @since v1-alpha10
* @since v1-alpha10 */
*/ class Example private constructor() {
private constructor()
} }

View file

@ -28,7 +28,7 @@ import de.staropensource.engine.logging.type.Call
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
class Filterer { class Filterer private constructor() {
/** /**
* Companion object of [Filterer] * Companion object of [Filterer]
* *
@ -60,11 +60,4 @@ class Filterer {
return false return false
} }
} }
/**
* Initializes this class.
*
* @since v1-alpha10
*/
private constructor()
} }

View file

@ -34,7 +34,7 @@ import kotlin.reflect.KClass
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
class LoggerConfiguration { class LoggerConfiguration private constructor() {
/** /**
* Companion object of [LoggerConfiguration]. * Companion object of [LoggerConfiguration].
* *
@ -137,11 +137,4 @@ class LoggerConfiguration {
*/ */
var featureDateTimeTZ: TimeZone = TimeZone.currentSystemDefault() var featureDateTimeTZ: TimeZone = TimeZone.currentSystemDefault()
} }
/**
* Initializes this class.
*
* @since v1-alpha10
*/
private constructor()
} }

View file

@ -38,14 +38,7 @@ import kotlin.reflect.full.primaryConstructor
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
class Processor { class Processor private constructor() {
/**
* Initializes this class.
*
* @since v1-alpha10
*/
private constructor()
/** /**
* Companion object of [Processor]. * Companion object of [Processor].
* *

View file

@ -28,7 +28,7 @@ import de.staropensource.engine.logging.Logger
* *
* @since v1-alpha10 * @since v1-alpha10
*/ */
class Main { class Main private constructor() {
/** /**
* Companion object of [Main]. * Companion object of [Main].
* *
@ -53,11 +53,4 @@ class Main {
logger.info("Hello World! <red><bold>Caused by <clinit> and \\<init>.") logger.info("Hello World! <red><bold>Caused by <clinit> and \\<init>.")
} }
} }
/**
* Initializes this class.
*
* @since v1-alpha10
*/
private constructor()
} }