From: Jérôme Benoit Date: Wed, 13 Jul 2022 21:26:08 +0000 (+0200) Subject: Avoid to instantiated static only classes X-Git-Tag: v1.1.64~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4db8406cd780b8912b2cf3bd882a21228aba47a7;p=e-mobility-charging-stations-simulator.git Avoid to instantiated static only classes Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index a457bd5c..1c420879 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -119,4 +119,8 @@ export default class Constants { static readonly DEFAULT_UI_WEBSOCKET_SERVER_HOST = 'localhost'; static readonly DEFAULT_UI_WEBSOCKET_SERVER_PORT = 8080; + + private constructor() { + // This is intentional + } } diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 9a1caf8e..1e2e8cdc 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -5,4 +5,8 @@ export default class WorkerConstants { static readonly DEFAULT_POOL_MIN_SIZE = 4; static readonly DEFAULT_POOL_MAX_SIZE = 16; static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; + + private constructor() { + // This is intentional + } }