Skip to content

Commit

Permalink
Proper priority comparator for SmallRyeConfigBuilderCustomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jan 11, 2025
1 parent d0a447b commit aa02e60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ public SmallRyeConfig build() {
customizers.sort(new Comparator<>() {
@Override
public int compare(SmallRyeConfigBuilderCustomizer o1, SmallRyeConfigBuilderCustomizer o2) {
return o1.priority() - o2.priority();
return Integer.compare(o1.priority(), o2.priority());
}
});
for (SmallRyeConfigBuilderCustomizer customizer : customizers) {
Expand Down

0 comments on commit aa02e60

Please sign in to comment.