fix: checkstyle

This commit is contained in:
vran 2022-03-17 11:02:14 +08:00
parent 98d5a5b7a7
commit f7a80d8cb9
1 changed files with 4 additions and 5 deletions

View File

@ -31,11 +31,6 @@ public interface DatabaseMetaConverter {
return of(database, tables, columnMap, indexMap, triggerMap, fkMap);
}
default <R> Map<Integer, List<R>> groupBy(List<R> content, Function<R, Integer> idMapping) {
return content.stream()
.collect(Collectors.groupingBy(idMapping));
}
default DatabaseMeta of(DatabaseDocumentPojo database,
List<TableDocumentPojo> tables,
Map<Integer, List<TableColumnDocumentPojo>> columnGroupByTableId,
@ -69,4 +64,8 @@ public interface DatabaseMetaConverter {
@Mapping(target = "columnNames", source = "pojo.columnNameArray")
IndexMeta of(TableIndexDocumentPojo pojo);
default <R> Map<Integer, List<R>> groupBy(List<R> content, Function<R, Integer> idMapping) {
return content.stream()
.collect(Collectors.groupingBy(idMapping));
}
}