keith-turner commented on a change in pull request #2122:
URL: https://github.com/apache/accumulo/pull/2122#discussion_r643201136



##########
File path: 
core/src/main/java/org/apache/accumulo/core/client/admin/NamespaceOperations.java
##########
@@ -202,11 +202,32 @@ void removeProperty(String namespace, String property)
    *           if the user does not have permission
    * @throws NamespaceNotFoundException
    *           if the specified namespace doesn't exist
-   * @since 1.6.0
+   * @deprecated since 2.1.0; use {@link #getPropertiesMap(String)} instead.
    */
+  @Deprecated(since = "2.1.0")

Review comment:
       My preference would be to not deprecate or remove the method for the 
following reasons.
   
   - The method is useful for the case of looping through the properties to 
find props matching a pattern.  This use case is not uncommon and it seems like 
the existing method supports slightly shorter code.
   - For table props, it seems like the existing method has been the only way 
to get table props in the API since Accumulo was released. So for the past 
decade any code written would have had to use this method.  To me, removing the 
method when it has no problems seems needlessly disruptive to this existing 
code.
   
   My preference would be a `@see` javadoc tag pointing to the other method 
instead of deprecating. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to