Skip to content

Commit 2c6e9c5

Browse files
Clarify Javadocs
1 parent 777352c commit 2c6e9c5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

temporal-spring-boot-autoconfigure/src/main/java/io/temporal/spring/boot/autoconfigure/AutoConfigurationUtils.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,13 @@ private static Comparator<Object> beanFactoryAwareOrderComparator(
105105
}
106106
Map.Entry<String, TemporalOptionsCustomizer<?>> entry =
107107
(Map.Entry<String, TemporalOptionsCustomizer<?>>) o;
108-
// The AnnotationAwareOrderComparator does not have the "withSourceProvider" method
109-
// The OrderComparator.withSourceProvider does not properly account for the annotations
108+
// Check if the bean itself has a Priority annotation
110109
Integer priority = AnnotationAwareOrderComparator.INSTANCE.getPriority(entry.getValue());
111110
if (priority != null) {
112111
return (Ordered) () -> priority;
113112
}
114113

115-
// Consult the bean factory method for annotations
114+
// Check if the bean factory method or the bean has an Order annotations
116115
String beanName = entry.getKey();
117116
if (beanName != null) {
118117
Order order = beanFactory.findAnnotationOnBean(beanName, Order.class);

0 commit comments

Comments
 (0)