diff options
| author | EVE <EVE@EVE-PC> | 2017-03-13 16:42:21 -0400 |
|---|---|---|
| committer | EVE <EVE@EVE-PC> | 2017-03-13 16:42:21 -0400 |
| commit | 27bf571d6413c3cc6a5d664b5bddd38d21d7b1cd (patch) | |
| tree | 847fb52acb091c1c613d37b8477094d5762c6988 /BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java | |
| parent | aa807a96cae2c47259fb38f710640883060339e9 (diff) | |
Formatting
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java b/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java index 1ec5b80..c473150 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java +++ b/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java @@ -7,50 +7,47 @@ package bjc.utils.components; * */ public class ComponentDescription implements IDescribedComponent { - private static void sanityCheckArgs(String name, String author, - String description, int version) { + private static void sanityCheckArgs(String name, String author, String description, int version) { if (name == null) { throw new NullPointerException("Component name can't be null"); } else if (version <= 0) { - throw new IllegalArgumentException( - "Component version must be greater than 0"); + throw new IllegalArgumentException("Component version must be greater than 0"); } } /** * The author of the component */ - private String author; + private String author; /** * The description of the component */ - private String description; + private String description; /** * The name of the component */ - private String name; + private String name; /** * The version of the component */ - private int version; + private int version; /** * Create a new component description * * @param name - * The name of the component + * The name of the component * @param author - * The author of the component + * The author of the component * @param description - * The description of the component + * The description of the component * @param version - * The version of the component + * The version of the component * @throws IllegalArgumentException - * thrown if version is less than 1 + * thrown if version is less than 1 */ - public ComponentDescription(String name, String author, - String description, int version) { + public ComponentDescription(String name, String author, String description, int version) { sanityCheckArgs(name, author, description, version); this.name = name; @@ -61,19 +58,19 @@ public class ComponentDescription implements IDescribedComponent { @Override public String getAuthor() { - if(author == null) { + if (author == null) { return IDescribedComponent.super.getAuthor(); } - + return author; } @Override public String getDescription() { - if(description == null) { + if (description == null) { return IDescribedComponent.super.getDescription(); } - + return description; } |
