Some small modification by Linary · Pull Request #331 · apache/hugegraph

Expand Up @@ -338,6 +338,7 @@ protected static void clearGraph() { throw new HugeException("Failed to list " + type); } String content = r.readEntity(String.class); @SuppressWarnings("rawtypes") List<Map> list = readList(content, type, Map.class); List<Object> ids = list.stream().map(e -> e.get("id")) .collect(Collectors.toList()); Expand All @@ -359,6 +360,7 @@ protected static void clearSchema() { throw new HugeException("Failed to list " + type); } String content = r.readEntity(String.class); @SuppressWarnings("rawtypes") List<Map> list = readList(content, type, Map.class); List<Object> names = list.stream().map(e -> e.get("name")) .collect(Collectors.toList()); Expand Down