private void updateCache(Cache<T> cache, List<String> createPaths, boolean success, String updatePath, T data, Stat stat) { if (createPaths == null || createPaths.isEmpty()) { if (success) { cache.update(updatePath, data, stat); } } else { String firstPath = firstCachePath(createPaths); if (firstPath != null) { cache.updateRecursive(firstPath); } } }
private void updateCache(Cache<T> cache, List<String> createPaths, boolean success, String updatePath, T data, Stat stat) { if (createPaths == null || createPaths.isEmpty()) { if (success) { cache.update(updatePath, data, stat); } } else { String firstPath = firstCachePath(createPaths); if (firstPath != null) { cache.updateRecursive(firstPath); } } }