diff --git a/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/main/java/org/springframework/boot/jarmode/layertools/Command.java b/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/main/java/org/springframework/boot/jarmode/layertools/Command.java index 17b688f09785..48899b947980 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/main/java/org/springframework/boot/jarmode/layertools/Command.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/main/java/org/springframework/boot/jarmode/layertools/Command.java @@ -118,13 +118,13 @@ final void run(PrintStream out, Deque args) { * @param options any options extracted from the arguments * @param parameters any parameters extracted from the arguments */ - protected abstract void run(PrintStream out, Map options, List parameters); + abstract void run(PrintStream out, Map options, List parameters); /** * Whether the command is deprecated. * @return whether the command is deprecated */ - protected boolean isDeprecated() { + boolean isDeprecated() { return false; } @@ -132,7 +132,7 @@ protected boolean isDeprecated() { * Returns the deprecation message. * @return the deprecation message */ - protected String getDeprecationMessage() { + String getDeprecationMessage() { return null; } @@ -154,7 +154,7 @@ static Command find(Collection commands, String name) { /** * Parameters that the command accepts. */ - protected static final class Parameters { + static final class Parameters { private final List descriptions; @@ -179,7 +179,7 @@ public String toString() { * Factory method used if there are no expected parameters. * @return a new {@link Parameters} instance */ - protected static Parameters none() { + static Parameters none() { return of(); } @@ -189,7 +189,7 @@ protected static Parameters none() { * @param descriptions the parameter descriptions * @return a new {@link Parameters} instance with the given descriptions */ - protected static Parameters of(String... descriptions) { + static Parameters of(String... descriptions) { return new Parameters(descriptions); } @@ -198,7 +198,7 @@ protected static Parameters of(String... descriptions) { /** * Options that the command accepts. */ - protected static final class Options { + static final class Options { private final Option[] values; @@ -239,7 +239,7 @@ Stream