diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
| commit | 4f8ad8f0588564679cb8ccb9ae4592738810d800 (patch) | |
| tree | fa8d0d1c2115079e362e0218b5d530f1502138c4 /src/main/java/org/zwobble/mammoth/xml/XmlElement.java | |
| parent | 07685b4a361f8827728513f9d7360bd91dc1a246 (diff) | |
Add map as shorter alias for ImmutableMap.of
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/xml/XmlElement.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/xml/XmlElement.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/zwobble/mammoth/xml/XmlElement.java b/src/main/java/org/zwobble/mammoth/xml/XmlElement.java index f592415..c44b7bb 100644 --- a/src/main/java/org/zwobble/mammoth/xml/XmlElement.java +++ b/src/main/java/org/zwobble/mammoth/xml/XmlElement.java @@ -2,17 +2,17 @@ package org.zwobble.mammoth.xml; import com.google.common.base.Joiner; import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; import java.util.List; import java.util.Map; import java.util.Optional; import static com.google.common.collect.Iterables.*; +import static org.zwobble.mammoth.util.MammothMaps.map; public class XmlElement implements XmlNode, XmlElementLike { public XmlElement(String name) { - this(name, ImmutableMap.of()); + this(name, map()); } public XmlElement(String name, Map<String, String> attributes) { |
