fix tests
parent
caa12725b6
commit
ca0becc07f
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ public class FactoryService extends Service {
|
|||
return false;
|
||||
}
|
||||
})
|
||||
.min(comparingInt(r -> r.priority().ordinal()));
|
||||
.max(comparingInt(r -> r.priority().getValue()));
|
||||
if (resolverOptional.isPresent()) {
|
||||
return resolverOptional.get();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue