Description
if ( localCreateMethod == null ) { CreateModable<ACLBackgroundPathAndBytesable<String>> tempCreateMethod = useProtection ? client.create().creatingParentContainersIfNeeded().withProtection() : client.create().creatingParentContainersIfNeeded(); if ( createMethod.compareAndSet(null, tempCreateMethod) ) { localCreateMethod = tempCreateMethod; } } localCreateMethod.withMode(getCreateMode(existingPath != null)).inBackground(backgroundCallback).forPath(createPath, data.get());
Before calling withMode(), localCreateMethod should be checked against null.
Attachments
Attachments
Issue Links
- links to