From bd7bcf54a5e3f1f71d2c1c708551615152432032 Mon Sep 17 00:00:00 2001 From: Leo Galambos Date: Tue, 15 Jul 2025 21:25:44 +0200 Subject: [PATCH] chore: Protected no-argument constructor added to satisfy code analysis tools Signed-off-by: Leo Galambos --- .classpath | 13 +++++++++++++ src/main/java/conflux/CtxInstance.java | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/.classpath b/.classpath index 282ada5..68d13e3 100644 --- a/.classpath +++ b/.classpath @@ -13,6 +13,19 @@ + + + + + + + + + + + + + diff --git a/src/main/java/conflux/CtxInstance.java b/src/main/java/conflux/CtxInstance.java index 8791ae3..8e1f355 100644 --- a/src/main/java/conflux/CtxInstance.java +++ b/src/main/java/conflux/CtxInstance.java @@ -62,6 +62,16 @@ public final class CtxInstance implements CtxInterface { private final Map> keyTypes = new ConcurrentHashMap<>(); private final Map, List>>> listeners = new ConcurrentHashMap<>(); + /** + * Protected no-argument constructor added to satisfy code analysis tools. + *

+ * This constructor should not be used directly. It exists solely to comply with + * static analysis requirements (e.g., PMD) expecting at least one constructor. + */ + protected CtxInstance() { + // Intentionally left blank + } + /** * Stores or updates the value for a given key. If the key is used for the first * time, its type is recorded. If the key has been used before with a different