From cc37bb013b4c240b94508a4a5e946c67a3b6fd89 Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Thu, 10 Aug 2017 13:49:28 +0200 Subject: [PATCH] Document constants in @ShellOption --- .../org/springframework/shell/standard/ShellOption.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spring-shell-standard/src/main/java/org/springframework/shell/standard/ShellOption.java b/spring-shell-standard/src/main/java/org/springframework/shell/standard/ShellOption.java index 0ab432e7..5a862199 100644 --- a/spring-shell-standard/src/main/java/org/springframework/shell/standard/ShellOption.java +++ b/spring-shell-standard/src/main/java/org/springframework/shell/standard/ShellOption.java @@ -33,8 +33,15 @@ import java.lang.annotation.Target; @Target(ElementType.PARAMETER) public @interface ShellOption { + /** + * Used to indicate that the default value is the value {@literal null}, which is different from the fact that + * there is no default value. + */ String NULL = "__NULL__"; + /** + * Used to indicate that there is no default value (i.e. parameter is mandatory). + */ String NONE = "__NONE__"; /**