Skip to content

Commit aa95282

Browse files
committed
Polish @since tags
Closes gh-47779
1 parent f5dbd85 commit aa95282

File tree

57 files changed

+45
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+45
-106
lines changed

core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapRegistry.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ interface InstanceSupplier<T> {
105105
* bootstrap instances.
106106
* @return the instance or {@code null}
107107
*/
108-
@Nullable T get(BootstrapContext context);
108+
@Nullable
109+
T get(BootstrapContext context);
109110

110111
/**
111112
* Return the scope of the supplied instance.
112113
* @return the scope
113-
* @since 2.4.2
114114
*/
115115
default Scope getScope() {
116116
return Scope.SINGLETON;
@@ -120,7 +120,6 @@ default Scope getScope() {
120120
* Return a new {@link InstanceSupplier} with an updated {@link Scope}.
121121
* @param scope the new scope
122122
* @return a new {@link InstanceSupplier} instance with the new scope
123-
* @since 2.4.2
124123
*/
125124
default InstanceSupplier<T> withScope(Scope scope) {
126125
Assert.notNull(scope, "'scope' must not be null");
@@ -166,8 +165,6 @@ static <T> InstanceSupplier<T> from(@Nullable Supplier<T> supplier) {
166165

167166
/**
168167
* The scope of an instance.
169-
*
170-
* @since 2.4.2
171168
*/
172169
enum Scope {
173170

core/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ public interface Adapter<T, R> {
383383
* @param value the value to adapt
384384
* @return an adapted value or {@code null}
385385
*/
386-
@Nullable R adapt(T value);
386+
@Nullable
387+
R adapt(T value);
387388

388389
}
389390

@@ -502,7 +503,6 @@ private boolean test(T value) {
502503
*
503504
* @param <T> the source type
504505
* @param <R> the result type
505-
* @since 4.0.0
506506
*/
507507
@FunctionalInterface
508508
public interface Adapter<T, R> {
@@ -512,7 +512,8 @@ public interface Adapter<T, R> {
512512
* @param value the value to adapt
513513
* @return an adapted value or {@code null}
514514
*/
515-
@Nullable R adapt(@Nullable T value);
515+
@Nullable
516+
R adapt(@Nullable T value);
516517

517518
}
518519

@@ -521,7 +522,6 @@ public interface Adapter<T, R> {
521522
*
522523
* @param <T> the source type
523524
* @param <R> the result type
524-
* @since 4.0.0
525525
*/
526526
@FunctionalInterface
527527
public interface Factory<T, R extends @Nullable Object> {
@@ -541,7 +541,6 @@ public interface Factory<T, R extends @Nullable Object> {
541541
*
542542
* @param <T> the source type
543543
* @param <R> the result type
544-
* @since 4.0.0
545544
*/
546545
@FunctionalInterface
547546
public interface Mapper<R extends @Nullable Object, T> {

core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorsFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ static EnvironmentPostProcessorsFactory of(String... classNames) {
8181
* @param classLoader the source class loader
8282
* @param classNames the post processor class names
8383
* @return an {@link EnvironmentPostProcessorsFactory} instance
84-
* @since 2.4.8
8584
*/
8685
static EnvironmentPostProcessorsFactory of(@Nullable ClassLoader classLoader, String... classNames) {
8786
return new ReflectionEnvironmentPostProcessorsFactory(classLoader, classNames);

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ private void forwardToErrorPage(String path, HttpServletRequest request, HttpSer
197197
* description based on the request {@code servletPath} and {@code pathInfo}.
198198
* @param request the source request
199199
* @return the description
200-
* @since 1.5.0
201200
*/
202201
protected String getDescription(HttpServletRequest request) {
203202
String pathInfo = (request.getPathInfo() != null) ? request.getPathInfo() : "";
@@ -356,7 +355,8 @@ private void sendErrorIfNecessary() throws IOException {
356355
}
357356
}
358357

359-
@Nullable String getMessage() {
358+
@Nullable
359+
String getMessage() {
360360
return this.message;
361361
}
362362

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ private Log getLogger() {
190190
* the {@link SpringApplication}. The default implementation returns a new
191191
* {@code SpringApplicationBuilder} in its default state.
192192
* @return the {@code SpringApplicationBuilder}.
193-
* @since 1.3.0
194193
*/
195194
protected SpringApplicationBuilder createSpringApplicationBuilder() {
196195
return new SpringApplicationBuilder();

loader/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public void writeNestedLibrary(String location, Library library) throws IOExcept
166166
* @param location the location of the index file
167167
* @param lines the lines to write
168168
* @throws IOException if the write fails
169-
* @since 2.3.0
170169
*/
171170
public void writeIndexFile(@Nullable String location, Collection<String> lines) throws IOException {
172171
if (location != null) {
@@ -363,7 +362,8 @@ interface EntryTransformer {
363362
*/
364363
EntryTransformer NONE = (jarEntry) -> jarEntry;
365364

366-
@Nullable JarArchiveEntry transform(JarArchiveEntry jarEntry);
365+
@Nullable
366+
JarArchiveEntry transform(JarArchiveEntry jarEntry);
367367

368368
}
369369

module/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/ManagementContextConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
* Specifies the type of management context that is required for this configuration to
5252
* be applied.
5353
* @return the required management context type
54-
* @since 2.0.0
5554
*/
5655
ManagementContextType value() default ManagementContextType.ANY;
5756

@@ -75,7 +74,7 @@
7574
* "@Bean Lite Mode" (see {@link Bean @Bean's javadoc}). It is therefore behaviorally
7675
* equivalent to removing the {@code @Configuration} stereotype.
7776
* @return whether to proxy {@code @Bean} methods
78-
* @since 2.2
77+
* @since 2.2.0
7978
*/
8079
@AliasFor(annotation = Configuration.class)
8180
boolean proxyBeanMethods() default true;

module/spring-boot-data-cassandra-test/src/main/java/org/springframework/boot/data/cassandra/test/autoconfigure/DataCassandraTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
* Properties in form {@literal key=value} that should be added to the Spring
6767
* {@link Environment} before the test runs.
6868
* @return the properties to add
69-
* @since 2.1.0
7069
*/
7170
String[] properties() default {};
7271

module/spring-boot-data-jpa-test/src/main/java/org/springframework/boot/data/jpa/test/autoconfigure/DataJpaTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
* Properties in form {@literal key=value} that should be added to the Spring
9696
* {@link Environment} before the test runs.
9797
* @return the properties to add
98-
* @since 2.1.0
9998
*/
10099
String[] properties() default {};
101100

module/spring-boot-data-ldap-test/src/main/java/org/springframework/boot/data/ldap/test/autoconfigure/DataLdapTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
* Properties in form {@literal key=value} that should be added to the Spring
7070
* {@link Environment} before the test runs.
7171
* @return the properties to add
72-
* @since 2.1.0
7372
*/
7473
String[] properties() default {};
7574

0 commit comments

Comments
 (0)