chore: Protected no-argument constructor added to satisfy code analysis
tools Signed-off-by: Leo Galambos <lg@hq.egothor.org>
This commit is contained in:
@@ -62,6 +62,16 @@ public final class CtxInstance implements CtxInterface {
|
||||
private final Map<String, Class<?>> keyTypes = new ConcurrentHashMap<>();
|
||||
private final Map<Key<?>, List<WeakReference<Listener<?>>>> listeners = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* Protected no-argument constructor added to satisfy code analysis tools.
|
||||
* <p>
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user