/**
* A configuration that waits for a watcher event from the specified config source.
*
* The property values in this configuration will be changed dynamically at runtime if the value changes in the
* underlying configuration source.
* <p>
* This configuration does not allow null as key or value and will throw NullPointerException when trying to add or set
* properties with empty key or value.
*
* @author cfregly
*/
@SuppressWarnings("unchecked")
public class DynamicWatchedConfiguration extends ConcurrentMapConfiguration implements WatchedUpdateListener {
The keys and values must not be null however the document further mentions about empty key or value. Does it mean both null & empty are not allowed?
if so then why we don't allow empty values?
per the code below:
The keys and values must not be null however the document further mentions about empty key or value. Does it mean both null & empty are not allowed? if so then why we don't allow empty values?