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