Skip to content

Commit

Permalink
Change LinkedList to HashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
RaigorJiang committed Aug 22, 2024
1 parent 57a3633 commit 9231db0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ private Map<String, Collection<String>> loadViewNames(final Connection connectio
ResultSet resultSet = preparedStatement.executeQuery()) {
while (resultSet.next()) {
String schemaName = resultSet.getString("table_schema");
Collection<String> viewMetaData = result.computeIfAbsent(schemaName, key -> new LinkedList<>());
Collection<String> viewMetaData = result.computeIfAbsent(schemaName, key -> new HashSet<>());
String tableName = resultSet.getString("table_name");
viewMetaData.add(tableName);
}
Expand Down

0 comments on commit 9231db0

Please sign in to comment.