diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-11-09 18:53:43 -0500 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-11-09 18:53:43 -0500 |
| commit | 6340caa7ec15be51c6d633a0519f3e0c76b25241 (patch) | |
| tree | 1bac6648cae25b7f056eb69856f45d1be13a799b /src/main/java/bjc/esodata/UnifiedDirectory.java | |
| parent | bbddfcafec1b72972e1f925048ddbe715411798d (diff) | |
Formatting cleanup
Diffstat (limited to 'src/main/java/bjc/esodata/UnifiedDirectory.java')
| -rw-r--r-- | src/main/java/bjc/esodata/UnifiedDirectory.java | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/main/java/bjc/esodata/UnifiedDirectory.java b/src/main/java/bjc/esodata/UnifiedDirectory.java index 2221615..dcbac89 100644 --- a/src/main/java/bjc/esodata/UnifiedDirectory.java +++ b/src/main/java/bjc/esodata/UnifiedDirectory.java @@ -82,26 +82,23 @@ public class UnifiedDirectory<K, V> implements Directory<K, V> { @Override public boolean equals(final Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (!(obj instanceof UnifiedDirectory<?, ?>)) - return false; + if (this == obj) return true; + if (obj == null) return false; + if (!(obj instanceof UnifiedDirectory<?, ?>)) return false; final UnifiedDirectory<?, ?> other = (UnifiedDirectory<?, ?>) obj; if (children == null) { - if (other.children != null) - return false; - } else if (!children.equals(other.children)) + if (other.children != null) return false; + } else if (!children.equals(other.children)) { return false; + } if (data == null) { - if (other.data != null) - return false; - } else if (!data.equals(other.data)) + if (other.data != null) return false; + } else if (!data.equals(other.data)) { return false; + } return true; } |
