Skip to content

Commit 26a68ca

Browse files
committed
Polish
1 parent 31de365 commit 26a68ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 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.
@@ -1274,6 +1274,7 @@ public Set<ApplicationListener<?>> getListeners() {
12741274
/**
12751275
* Set the {@link ApplicationStartup} to use for collecting startup metrics.
12761276
* @param applicationStartup the application startup to use
1277+
* @since 2.4.0
12771278
*/
12781279
public void setApplicationStartup(ApplicationStartup applicationStartup) {
12791280
this.applicationStartup = (applicationStartup != null) ? applicationStartup : ApplicationStartup.DEFAULT;
@@ -1282,6 +1283,7 @@ public void setApplicationStartup(ApplicationStartup applicationStartup) {
12821283
/**
12831284
* Returns the {@link ApplicationStartup} used for collecting startup metrics.
12841285
* @return the application startup
1286+
* @since 2.4.0
12851287
*/
12861288
public ApplicationStartup getApplicationStartup() {
12871289
return this.applicationStartup;

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/origin/Origin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 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.
@@ -78,6 +78,7 @@ static Origin from(Object source) {
7878
* @param source the source object or {@code null}
7979
* @return a list of parents or an empty list if the source is {@code null}, has no
8080
* origin, or no parent
81+
* @since 2.4.0
8182
*/
8283
static List<Origin> parentsFrom(Object source) {
8384
Origin origin = from(source);

0 commit comments

Comments
 (0)