From df94066e3af02ff02d5ab4d033a3d603f743234c Mon Sep 17 00:00:00 2001 From: bjculkin Date: Mon, 12 Feb 2018 22:45:04 -0500 Subject: Formatting pass --- .../java/bjc/utils/esodata/UnifiedDirectory.java | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'base/src/main/java/bjc/utils/esodata/UnifiedDirectory.java') diff --git a/base/src/main/java/bjc/utils/esodata/UnifiedDirectory.java b/base/src/main/java/bjc/utils/esodata/UnifiedDirectory.java index ed71512..75d3440 100644 --- a/base/src/main/java/bjc/utils/esodata/UnifiedDirectory.java +++ b/base/src/main/java/bjc/utils/esodata/UnifiedDirectory.java @@ -11,10 +11,10 @@ import bjc.utils.funcdata.IMap; * @author EVE * * @param - * The key type of the directory. + * The key type of the directory. * * @param - * The value type of the directory. + * The value type of the directory. */ public class UnifiedDirectory implements Directory { /* Our directory children. */ @@ -40,7 +40,7 @@ public class UnifiedDirectory implements Directory { @Override public Directory putSubdirectory(final K key, final Directory val) { - if (data.containsKey(key)) { + if(data.containsKey(key)) { final String msg = String.format("Key %s is already used for data", key); throw new IllegalArgumentException(msg); @@ -61,7 +61,7 @@ public class UnifiedDirectory implements Directory { @Override public V putKey(final K key, final V val) { - if (children.containsKey(key)) { + if(children.containsKey(key)) { final String msg = String.format("Key %s is already used for sub-directories.", key); throw new IllegalArgumentException(msg); @@ -81,19 +81,19 @@ public class UnifiedDirectory implements Directory { @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)) return false; + if(children == null) { + 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)) return false; + if(data == null) { + if(other.data != null) return false; + } else if(!data.equals(other.data)) return false; return true; } -- cgit v1.2.3