From d7f179f67c3e07bb9dff5b629f21e05926250e22 Mon Sep 17 00:00:00 2001 From: "Boslet, Cory (cb645j)" Date: Thu, 12 Dec 2024 14:53:14 -0500 Subject: [PATCH] Add private constructor for singletons --- .../camunda/v7_0/behavior/CamundaBehaviorSingletons.java | 2 ++ .../instrumentation/camunda/v7_0/jobs/CamundaJobSingletons.java | 2 ++ .../camunda/v7_0/processes/CamundaProcessSingletons.java | 2 ++ .../camunda/v7_0/task/CamundaTaskSingletons.java | 2 ++ 4 files changed, 8 insertions(+) diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaBehaviorSingletons.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaBehaviorSingletons.java index 49c55daee108..2f2f04db16b1 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaBehaviorSingletons.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/behavior/CamundaBehaviorSingletons.java @@ -39,4 +39,6 @@ public static OpenTelemetry getOpentelemetry() { public static Instrumenter getInstumenter() { return instrumenter; } + + private CamundaBehaviorSingletons() {} } diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/jobs/CamundaJobSingletons.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/jobs/CamundaJobSingletons.java index bfb56dd42667..1dcb81c74f0b 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/jobs/CamundaJobSingletons.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/jobs/CamundaJobSingletons.java @@ -37,4 +37,6 @@ public static OpenTelemetry getOpentelemetry() { public static Instrumenter getInstumenter() { return instrumenter; } + + private CamundaJobSingletons() {} } diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/processes/CamundaProcessSingletons.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/processes/CamundaProcessSingletons.java index 02fad4b28696..e8437e0d9640 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/processes/CamundaProcessSingletons.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/processes/CamundaProcessSingletons.java @@ -39,4 +39,6 @@ public static OpenTelemetry getOpentelemetry() { public static Instrumenter getInstumenter() { return instrumenter; } + + private CamundaProcessSingletons() {} } diff --git a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/task/CamundaTaskSingletons.java b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/task/CamundaTaskSingletons.java index 33fd80d96c7f..4cb4b76777b2 100644 --- a/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/task/CamundaTaskSingletons.java +++ b/instrumentation/camunda/camunda-7.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/camunda/v7_0/task/CamundaTaskSingletons.java @@ -37,4 +37,6 @@ public static OpenTelemetry getOpentelemetry() { public static Instrumenter getInstumenter() { return instrumenter; } + + private CamundaTaskSingletons() {} }