From 365dd2c4e6f001d55801e06a29e8d2befda4dd2c Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Sun, 25 Mar 2012 17:52:34 -0700 Subject: [PATCH] Small readme update --- README.md | 2 +- src/main/java/ch/spacebase/opennbt/tag/CompoundTag.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4660db8..4908710 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ OpenNBT is a continuation of Graham Edgecombe's jNBT library. License -------------- -OpenNBT is licensed under the [BSD](http://www.opensource.org/licenses/BSD-3-Clause) license. (See LICENSE.txt for more info.) +OpenNBT is licensed under the [BSD](http://www.opensource.org/licenses/BSD-3-Clause) license. See LICENSE.txt for more info. Building the Source diff --git a/src/main/java/ch/spacebase/opennbt/tag/CompoundTag.java b/src/main/java/ch/spacebase/opennbt/tag/CompoundTag.java index c150f04..09f94e5 100644 --- a/src/main/java/ch/spacebase/opennbt/tag/CompoundTag.java +++ b/src/main/java/ch/spacebase/opennbt/tag/CompoundTag.java @@ -36,6 +36,7 @@ package ch.spacebase.opennbt.tag; import java.util.Collection; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import java.util.Set; @@ -100,7 +101,7 @@ public final class CompoundTag extends Tag { public CompoundTag clone() { Map newMap = NBTUtils.cloneMap(this.getValue()); - + return new CompoundTag(this.getName(), newMap); }