Remove redundant null check for sorter

See gh-43343
This commit is contained in:
Jae-Young98 2024-12-02 18:31:21 +09:00 committed by Moritz Halbritter
parent 5e33808607
commit bd367803d1
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public abstract class Configurations {
Assert.notNull(classes, "Classes must not be null");
sorter = (sorter != null) ? sorter : UnaryOperator.identity();
Collection<Class<?>> sorted = sorter.apply(classes);
this.sorter = (sorter != null) ? sorter : UnaryOperator.identity();
this.sorter = sorter;
this.classes = Collections.unmodifiableSet(new LinkedHashSet<>(sorted));
this.beanNameGenerator = beanNameGenerator;
}