reddycharan commented on a change in pull request #510: Issue-605 BP-15 New
CreateLedger API
URL: https://github.com/apache/bookkeeper/pull/510#discussion_r140855971
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/BookKeeper.java
##########
@@ -584,7 +591,11 @@ LedgerIdGenerator getLedgerIdGenerator() {
* report fake bytes with a mathching MAC unless it knows the password
*/
public enum DigestType {
- MAC, CRC32
+ MAC, CRC32;
+
+ public static DigestType
fromApiDigestType(org.apache.bookkeeper.client.api.DigestType digestType) {
Review comment:
hmm..again it is confusing to have same enum names
Bookkeeper.DigestType and client.api.DigestType
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services