import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * @deprecated To be removed with {@link ShardedDOMDataTree}.
+ */
+@Deprecated
final class ShardingTableEntry implements Identifiable<PathArgument> {
private static final Logger LOG = LoggerFactory.getLogger(ShardingTableEntry.class);
private final Map<PathArgument, ShardingTableEntry> children = Collections.emptyMap();
while (it.hasNext()) {
final PathArgument a = it.next();
- ShardingTableEntry child = entry.children.get(a);
- if (child == null) {
- child = new ShardingTableEntry(a);
- entry.children.put(a, child);
- }
+ ShardingTableEntry child = entry.children.computeIfAbsent(a, ShardingTableEntry::new);
}
Preconditions.checkState(entry.registration == null);