Avoid to instantiated static only classes
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 13 Jul 2022 21:26:08 +0000 (23:26 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 13 Jul 2022 21:26:08 +0000 (23:26 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Constants.ts
src/worker/WorkerConstants.ts

index a457bd5c9d825200d00fe1ee45f8fbaed386a18c..1c42087964ce36c8108a4001affc7923c6a53019 100644 (file)
@@ -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
+  }
 }
index 9a1caf8eae5cb69c9d4282ca4a9e1e9c54425c36..1e2e8cdcb2227a2117695d5261928f8dceedab8f 100644 (file)
@@ -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
+  }
 }