Skip to content

Commit

Permalink
Refactor RuleMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 24, 2023
1 parent ed3896a commit c0394f5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -58,7 +57,7 @@ public Collection<RuleConfiguration> getConfigurations() {
* @return found rules
*/
public <T extends ShardingSphereRule> Collection<T> findRules(final Class<T> clazz) {
List<T> result = new LinkedList<>();
Collection<T> result = new LinkedList<>();
for (ShardingSphereRule each : rules) {
if (clazz.isAssignableFrom(each.getClass())) {
result.add(clazz.cast(each));
Expand Down

0 comments on commit c0394f5

Please sign in to comment.