Skip to content

Commit 242803d

Browse files
committed
Polish "Replace Configuration fully qualified name by constant"
See gh-42311
1 parent 9bcfc72 commit 242803d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,15 +61,15 @@
6161
* @author Scott Frederick
6262
* @since 1.2.0
6363
*/
64-
@SupportedAnnotationTypes({ ConfigurationMetadataAnnotationProcessor.AUTO_CONFIGURATION_ANNOTATION,
65-
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_PROPERTIES_ANNOTATION,
64+
@SupportedAnnotationTypes({ ConfigurationMetadataAnnotationProcessor.CONFIGURATION_PROPERTIES_ANNOTATION,
65+
ConfigurationMetadataAnnotationProcessor.AUTO_CONFIGURATION_ANNOTATION,
66+
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_ANNOTATION,
6667
ConfigurationMetadataAnnotationProcessor.CONTROLLER_ENDPOINT_ANNOTATION,
6768
ConfigurationMetadataAnnotationProcessor.ENDPOINT_ANNOTATION,
6869
ConfigurationMetadataAnnotationProcessor.JMX_ENDPOINT_ANNOTATION,
6970
ConfigurationMetadataAnnotationProcessor.REST_CONTROLLER_ENDPOINT_ANNOTATION,
7071
ConfigurationMetadataAnnotationProcessor.SERVLET_ENDPOINT_ANNOTATION,
71-
ConfigurationMetadataAnnotationProcessor.WEB_ENDPOINT_ANNOTATION,
72-
ConfigurationMetadataAnnotationProcessor.CONFIGURATION_ANNOTATION })
72+
ConfigurationMetadataAnnotationProcessor.WEB_ENDPOINT_ANNOTATION })
7373
public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor {
7474

7575
static final String ADDITIONAL_METADATA_LOCATIONS_OPTION = "org.springframework.boot.configurationprocessor.additionalMetadataLocations";
@@ -86,6 +86,10 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
8686

8787
static final String DEFAULT_VALUE_ANNOTATION = "org.springframework.boot.context.properties.bind.DefaultValue";
8888

89+
static final String AUTO_CONFIGURATION_ANNOTATION = "org.springframework.boot.autoconfigure.AutoConfiguration";
90+
91+
static final String CONFIGURATION_ANNOTATION = "org.springframework.context.annotation.Configuration";
92+
8993
static final String CONTROLLER_ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpoint";
9094

9195
static final String ENDPOINT_ANNOTATION = "org.springframework.boot.actuate.endpoint.annotation.Endpoint";
@@ -102,10 +106,6 @@ public class ConfigurationMetadataAnnotationProcessor extends AbstractProcessor
102106

103107
static final String NAME_ANNOTATION = "org.springframework.boot.context.properties.bind.Name";
104108

105-
static final String AUTO_CONFIGURATION_ANNOTATION = "org.springframework.boot.autoconfigure.AutoConfiguration";
106-
107-
static final String CONFIGURATION_ANNOTATION = "org.springframework.context.annotation.Configuration";
108-
109109
private static final Set<String> SUPPORTED_OPTIONS = Collections
110110
.unmodifiableSet(Collections.singleton(ADDITIONAL_METADATA_LOCATIONS_OPTION));
111111

0 commit comments

Comments
 (0)