From 793eaa6fe781cc9b52502c05afeb89bedde993db Mon Sep 17 00:00:00 2001 From: Florian Waibel Date: Wed, 17 Jan 2018 21:31:07 +0100 Subject: [PATCH] Fix method annotation in some reference documentation snippets Somehow `@ShellCommand` found its way into the snippets. This commit replaces it with the correct annotation `@ShellMethod`. --- spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc b/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc index 892134af..732798d7 100644 --- a/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc +++ b/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc @@ -647,10 +647,10 @@ Here is a short example: [source,java] ---- public class UserCommands { - @ShellCommand(value = "This command ends up in the 'User Commands' group") + @ShellMethod(value = "This command ends up in the 'User Commands' group") public void foo() {} - @ShellCommand(value = "This command ends up in the 'Other Commands' group", + @ShellMethod(value = "This command ends up in the 'Other Commands' group", group = "Other Commands") public void bar() {} } @@ -803,7 +803,7 @@ to override the `clear` command: ---- public class MyClear implements Clear.Command { - @ShellCommand("Clear the screen, only better.") + @ShellMethod("Clear the screen, only better.") public void clear() { // ... }