Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Sep 20, 2023
1 parent caa1272 commit ca0becc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public enum FactoryResolverPriority {
HIGHEST(2),
LOWEST(0);

private final int priority;
private final int value;

FactoryResolverPriority(int priority) {
this.priority = priority;
FactoryResolverPriority(int value) {
this.value = value;
}

public int getPriority() {
return priority;
public int getValue() {
return value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public FactoryParametersResolver getFactoryParametersResolver(Map<String, String
return false;
}
})
.min(comparingInt(r -> r.priority().ordinal()));
.max(comparingInt(r -> r.priority().getValue()));
if (resolverOptional.isPresent()) {
return resolverOptional.get();
}
Expand Down

0 comments on commit ca0becc

Please sign in to comment.