private static Change<?> readChange(JsonNode node) { checkArgument(node.get("path") != null && node.get("type") != null, "a change should have a path and a type"); final ChangeType changeType = ChangeType.parse(node.get("type").textValue()); if (changeType != ChangeType.REMOVE) { checkArgument(node.get("content") != null, "a change should have a content.");
private static Change<?> readChange(JsonNode node) { checkArgument(node.get("path") != null && node.get("type") != null, "a change should have a path and a type"); final ChangeType changeType = ChangeType.parse(node.get("type").textValue()); if (changeType != ChangeType.REMOVE) { checkArgument(node.get("content") != null, "a change should have a content.");
private static Change<?> readChange(JsonNode node) { checkArgument(node.get("path") != null && node.get("type") != null, "a change should have a path and a type"); final ChangeType changeType = ChangeType.parse(node.get("type").textValue()); if (changeType != ChangeType.REMOVE) { checkArgument(node.get("content") != null, "a change should have a content.");