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/MapSet.java | |
| parent | bbddfcafec1b72972e1f925048ddbe715411798d (diff) | |
Formatting cleanup
Diffstat (limited to 'src/main/java/bjc/esodata/MapSet.java')
| -rw-r--r-- | src/main/java/bjc/esodata/MapSet.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/bjc/esodata/MapSet.java b/src/main/java/bjc/esodata/MapSet.java index a80c482..7d77ad6 100644 --- a/src/main/java/bjc/esodata/MapSet.java +++ b/src/main/java/bjc/esodata/MapSet.java @@ -116,8 +116,7 @@ public class MapSet<KeyType, ValueType> extends AbstractMap<KeyType, ValueType> * @return False if there is no map attached to the key, true otherwise. */ public boolean setMap(String key) { - if (!backing.containsKey(key)) - return false; + if (!backing.containsKey(key)) return false; currentMap = backing.get(key); @@ -165,16 +164,14 @@ public class MapSet<KeyType, ValueType> extends AbstractMap<KeyType, ValueType> @Override public Set<Map.Entry<KeyType, ValueType>> entrySet() { - if (currentMap == null) - throw new NullPointerException("Current map is not set"); + if (currentMap == null) throw new NullPointerException("Current map is not set"); return currentMap.entrySet(); } @Override public ValueType put(KeyType key, ValueType value) { - if (currentMap == null) - throw new NullPointerException("Current map is not set"); + if (currentMap == null) throw new NullPointerException("Current map is not set"); return currentMap.put(key, value); } |
