Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
According to java doc framework should return empty string if namespace is empty instead of null:
/** * Return the current namespace or "" if none * * @return namespace */ public String getNamespace();
If namespace is claimed from CuratorFramework client directly all is ok, but if NamespaceFacade is used then null is returned.
How to reproduce:
RetryPolicy policy = ...; CuratorFramework client = CuratorFrameworkFactory.newClient("connectionString", policy); CuratorFramework clientWithNamespaceFacade = client.usingNamespace(null); clientWithNamespaceFacade.getNamespace(); // <- expected "", but got null