File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
spring-context/src/main/java/org/springframework/context/annotation
spring-jms/src/main/java/org/springframework/jms/listener Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,11 @@ public class AnnotationBeanNameGenerator implements BeanNameGenerator {
86
86
87
87
private static final String COMPONENT_ANNOTATION_CLASSNAME = "org.springframework.stereotype.Component" ;
88
88
89
+ private static final Adapt [] ADAPTATIONS = Adapt .values (false , true );
90
+
91
+
92
+ private static final Log logger = LogFactory .getLog (AnnotationBeanNameGenerator .class );
93
+
89
94
/**
90
95
* Set used to track which stereotype annotations have already been checked
91
96
* to see if they use a convention-based override for the {@code value}
@@ -95,11 +100,6 @@ public class AnnotationBeanNameGenerator implements BeanNameGenerator {
95
100
*/
96
101
private static final Set <String > conventionBasedStereotypeCheckCache = ConcurrentHashMap .newKeySet ();
97
102
98
- private static final Adapt [] ADAPTATIONS = Adapt .values (false , true );
99
-
100
-
101
- private final Log logger = LogFactory .getLog (AnnotationBeanNameGenerator .class );
102
-
103
103
private final Map <String , Set <String >> metaAnnotationTypesCache = new ConcurrentHashMap <>();
104
104
105
105
Original file line number Diff line number Diff line change @@ -576,23 +576,23 @@ public ErrorHandler getErrorHandler() {
576
576
}
577
577
578
578
/**
579
- * Return the {@link ObservationRegistry} used for recording
579
+ * Set the {@link ObservationRegistry} to be used for recording
580
580
* {@link JmsObservationDocumentation#JMS_MESSAGE_PROCESS JMS message processing observations}.
581
+ * Defaults to no-op observations if the registry is not set.
581
582
* @since 6.1
582
583
*/
583
- @ Nullable
584
- public ObservationRegistry getObservationRegistry () {
585
- return this .observationRegistry ;
584
+ public void setObservationRegistry (@ Nullable ObservationRegistry observationRegistry ) {
585
+ this .observationRegistry = observationRegistry ;
586
586
}
587
587
588
588
/**
589
- * Set the {@link ObservationRegistry} to be used for recording
589
+ * Return the {@link ObservationRegistry} used for recording
590
590
* {@link JmsObservationDocumentation#JMS_MESSAGE_PROCESS JMS message processing observations}.
591
- * Defaults to no-op observations if the registry is not set.
592
591
* @since 6.1
593
592
*/
594
- public void setObservationRegistry (@ Nullable ObservationRegistry observationRegistry ) {
595
- this .observationRegistry = observationRegistry ;
593
+ @ Nullable
594
+ public ObservationRegistry getObservationRegistry () {
595
+ return this .observationRegistry ;
596
596
}
597
597
598
598
/**
You can’t perform that action at this time.
0 commit comments