diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:45:04 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-02-12 22:45:04 -0500 |
| commit | df94066e3af02ff02d5ab4d033a3d603f743234c (patch) | |
| tree | 168a1edaf58d386c175ffb601e9d4da8e13d31e2 /base/src/main/java/bjc/utils/components/ComponentDescription.java | |
| parent | ae51c587c53f7ca311e556e3cbd0c5566d6c2843 (diff) | |
Formatting pass
Diffstat (limited to 'base/src/main/java/bjc/utils/components/ComponentDescription.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/components/ComponentDescription.java | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/base/src/main/java/bjc/utils/components/ComponentDescription.java b/base/src/main/java/bjc/utils/components/ComponentDescription.java index 4f52ace..222dc09 100644 --- a/base/src/main/java/bjc/utils/components/ComponentDescription.java +++ b/base/src/main/java/bjc/utils/components/ComponentDescription.java @@ -10,39 +10,39 @@ public class ComponentDescription implements IDescribedComponent { @SuppressWarnings("unused") private static void sanityCheckArgs(final String name, final String author, final String description, final int version) { - if (name == null) { + if(name == null) { throw new NullPointerException("Component name can't be null"); - } else if (version <= 0) { + } else if(version <= 0) { throw new IllegalArgumentException("Component version must be greater than 0"); } } /** The author of the component */ - private final String author; + private final String author; /** The description of the component */ - private final String description; + private final String description; /** The name of the component */ - private final String name; + private final String name; /** The version of the component */ - private final int version; + private final 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(final String name, final String author, final String description, final int version) { @@ -56,7 +56,7 @@ public class ComponentDescription implements IDescribedComponent { @Override public String getAuthor() { - if (author == null) { + if(author == null) { return IDescribedComponent.super.getAuthor(); } @@ -65,7 +65,7 @@ public class ComponentDescription implements IDescribedComponent { @Override public String getDescription() { - if (description == null) { + if(description == null) { return IDescribedComponent.super.getDescription(); } @@ -112,25 +112,25 @@ public class ComponentDescription implements IDescribedComponent { */ @Override public boolean equals(final Object obj) { - if (this == obj) return true; - if (obj == null) return false; - if (getClass() != obj.getClass()) return false; + if(this == obj) return true; + if(obj == null) return false; + if(getClass() != obj.getClass()) return false; final ComponentDescription other = (ComponentDescription) obj; - if (author == null) { - if (other.author != null) return false; - } else if (!author.equals(other.author)) return false; + if(author == null) { + if(other.author != null) return false; + } else if(!author.equals(other.author)) return false; - if (description == null) { - if (other.description != null) return false; - } else if (!description.equals(other.description)) return false; + if(description == null) { + if(other.description != null) return false; + } else if(!description.equals(other.description)) return false; - if (name == null) { - if (other.name != null) return false; - } else if (!name.equals(other.name)) return false; + if(name == null) { + if(other.name != null) return false; + } else if(!name.equals(other.name)) return false; - if (version != other.version) return false; + if(version != other.version) return false; return true; } |
