Polish StartupStep "tags" method
Renaming the `tags` method to `getTags` for overall consistency, and fixing the Javadoc to mention that this returns an immutable collection. Closes gh-25678
This commit is contained in:
@@ -57,7 +57,7 @@ class DefaultApplicationStartup implements ApplicationStartup {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Tags tags() {
|
||||
public Tags getTags() {
|
||||
return this.TAGS;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public interface StartupStep {
|
||||
/**
|
||||
* Return the {@link Tag} collection for this step.
|
||||
*/
|
||||
Tags tags();
|
||||
Tags getTags();
|
||||
|
||||
/**
|
||||
* Record the state of the step and possibly other metrics like execution time.
|
||||
@@ -86,7 +86,7 @@ public interface StartupStep {
|
||||
|
||||
|
||||
/**
|
||||
* Mutable collection of {@link Tag}.
|
||||
* Immutable collection of {@link Tag}.
|
||||
*/
|
||||
interface Tags extends Iterable<Tag> {
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ class FlightRecorderStartupStep implements StartupStep {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Tags tags() {
|
||||
public Tags getTags() {
|
||||
return this.tags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user