Make private secondary constructors the primaries
This commit is contained in:
parent
fe2edbf3c1
commit
9b5d12203f
6 changed files with 11 additions and 47 deletions
|
@ -30,7 +30,7 @@ import de.staropensource.engine.logging.Logger
|
|||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class Engine {
|
||||
class Engine private constructor() {
|
||||
/**
|
||||
* Companion class of [Engine].
|
||||
*
|
||||
|
@ -47,11 +47,4 @@ class Engine {
|
|||
Logger.instance.info("Initializing")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
}
|
||||
|
|
|
@ -20,11 +20,10 @@
|
|||
|
||||
package de.staropensource.engine.newsubprj;
|
||||
|
||||
class Example {
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
/**
|
||||
* An example class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class Example private constructor() {
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ import de.staropensource.engine.logging.type.Call
|
|||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class Filterer {
|
||||
class Filterer private constructor() {
|
||||
/**
|
||||
* Companion object of [Filterer]
|
||||
*
|
||||
|
@ -60,11 +60,4 @@ class Filterer {
|
|||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ import kotlin.reflect.KClass
|
|||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class LoggerConfiguration {
|
||||
class LoggerConfiguration private constructor() {
|
||||
/**
|
||||
* Companion object of [LoggerConfiguration].
|
||||
*
|
||||
|
@ -137,11 +137,4 @@ class LoggerConfiguration {
|
|||
*/
|
||||
var featureDateTimeTZ: TimeZone = TimeZone.currentSystemDefault()
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
}
|
||||
|
|
|
@ -38,14 +38,7 @@ import kotlin.reflect.full.primaryConstructor
|
|||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class Processor {
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
|
||||
class Processor private constructor() {
|
||||
/**
|
||||
* Companion object of [Processor].
|
||||
*
|
||||
|
|
|
@ -28,7 +28,7 @@ import de.staropensource.engine.logging.Logger
|
|||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
class Main {
|
||||
class Main private constructor() {
|
||||
/**
|
||||
* Companion object of [Main].
|
||||
*
|
||||
|
@ -53,11 +53,4 @@ class Main {
|
|||
logger.info("Hello World! <red><bold>Caused by <clinit> and \\<init>.")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this class.
|
||||
*
|
||||
* @since v1-alpha10
|
||||
*/
|
||||
private constructor()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue