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:
Brian Clozel
2020-09-02 17:57:38 +02:00
parent f55b48f4b4
commit 88249b2d9a
3 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ class DefaultApplicationStartup implements ApplicationStartup {
}
@Override
public Tags tags() {
public Tags getTags() {
return this.TAGS;
}

View File

@@ -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> {
}

View File

@@ -77,7 +77,7 @@ class FlightRecorderStartupStep implements StartupStep {
}
@Override
public Tags tags() {
public Tags getTags() {
return this.tags;
}