diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:40:41 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:40:41 -0400 |
| commit | d4ca769e542b2489b1e23cfcbdc3a0b7275b87cd (patch) | |
| tree | 1653a7399f97fb0c63ce62e3f60fd830d5c37f70 /base/src/main/java/bjc/utils/cli/GenericHelp.java | |
| parent | 2ac2e31a56ae59ee582e43a90c3495f86dd9ee7a (diff) | |
Cleanup pass
Cleanup pass to uniformize things
Diffstat (limited to 'base/src/main/java/bjc/utils/cli/GenericHelp.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/cli/GenericHelp.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/base/src/main/java/bjc/utils/cli/GenericHelp.java b/base/src/main/java/bjc/utils/cli/GenericHelp.java index 2e74a6c..45d3a88 100644 --- a/base/src/main/java/bjc/utils/cli/GenericHelp.java +++ b/base/src/main/java/bjc/utils/cli/GenericHelp.java @@ -14,14 +14,14 @@ public class GenericHelp implements CommandHelp { * Create a new help topic. * * @param summary - * The summary of this help topic. + * The summary of this help topic. * * @param description - * The description of this help topic, or null if this help topic - * doesn't have a more detailed description. + * The description of this help topic, or null if this help + * topic doesn't have a more detailed description. */ public GenericHelp(final String summary, final String description) { - if(summary == null) { + if (summary == null) { throw new NullPointerException("Help summary must be non-null"); } @@ -31,7 +31,7 @@ public class GenericHelp implements CommandHelp { @Override public String getDescription() { - if(description == null) { + if (description == null) { return summary; } @@ -49,12 +49,12 @@ public class GenericHelp implements CommandHelp { builder.append("GenericHelp ["); - if(summary != null) { + if (summary != null) { builder.append("summary="); builder.append(summary); } - if(description != null) { + if (description != null) { builder.append(", "); builder.append("description="); builder.append(description); |
