mirror of
https://github.com/ViaVersion/ViaNBT.git
synced 2024-09-30 04:17:34 +02:00
Update line spacing.
This commit is contained in:
parent
ea50eeda4c
commit
32efcec2f3
@ -14,7 +14,6 @@ import java.util.zip.GZIPOutputStream;
|
||||
* A class containing methods for reading/writing NBT tags.
|
||||
*/
|
||||
public class NBTIO {
|
||||
|
||||
public static final Charset CHARSET = Charset.forName("UTF-8");
|
||||
|
||||
/**
|
||||
@ -174,5 +173,4 @@ public class NBTIO {
|
||||
out.write(nameBytes);
|
||||
tag.write(out);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ package org.spacehq.opennbt.conversion;
|
||||
* An exception thrown when an error occurs while converting something.
|
||||
*/
|
||||
public class ConversionException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -2022049594558041160L;
|
||||
|
||||
public ConversionException() {
|
||||
@ -22,5 +21,4 @@ public class ConversionException extends RuntimeException {
|
||||
public ConversionException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ package org.spacehq.opennbt.conversion;
|
||||
* An exception thrown when an error occurs while registering a converter.
|
||||
*/
|
||||
public class ConverterRegisterException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -2022049594558041160L;
|
||||
|
||||
public ConverterRegisterException() {
|
||||
@ -22,5 +21,4 @@ public class ConverterRegisterException extends RuntimeException {
|
||||
public ConverterRegisterException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import java.util.*;
|
||||
* A registry mapping tags and value types to converters.
|
||||
*/
|
||||
public class ConverterRegistry {
|
||||
|
||||
private static final Map<Class<? extends Tag>, TagConverter<? extends Tag, ?>> tagToConverter = new HashMap<Class<? extends Tag>, TagConverter<? extends Tag, ?>>();
|
||||
private static final Map<Class<?>, TagConverter<? extends Tag, ?>> typeToConverter = new HashMap<Class<?>, TagConverter<? extends Tag, ?>>();
|
||||
|
||||
@ -140,5 +139,4 @@ public class ConverterRegistry {
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ import org.spacehq.opennbt.tag.builtin.Tag;
|
||||
* @param <V> Value type.
|
||||
*/
|
||||
public interface TagConverter<T extends Tag, V> {
|
||||
|
||||
/**
|
||||
* Converts a tag to a value.
|
||||
*
|
||||
@ -25,5 +24,4 @@ public interface TagConverter<T extends Tag, V> {
|
||||
* @return The converted tag.
|
||||
*/
|
||||
public T convert(String name, V value);
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.ByteArrayTag;
|
||||
* A converter that converts between ByteArrayTag and byte[].
|
||||
*/
|
||||
public class ByteArrayTagConverter implements TagConverter<ByteArrayTag, byte[]> {
|
||||
|
||||
@Override
|
||||
public byte[] convert(ByteArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class ByteArrayTagConverter implements TagConverter<ByteArrayTag, byte[]>
|
||||
public ByteArrayTag convert(String name, byte[] value) {
|
||||
return new ByteArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.ByteTag;
|
||||
* A converter that converts between ByteTag and byte.
|
||||
*/
|
||||
public class ByteTagConverter implements TagConverter<ByteTag, Byte> {
|
||||
|
||||
@Override
|
||||
public Byte convert(ByteTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class ByteTagConverter implements TagConverter<ByteTag, Byte> {
|
||||
public ByteTag convert(String name, Byte value) {
|
||||
return new ByteTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ import java.util.Map;
|
||||
* A converter that converts between CompoundTag and Map.
|
||||
*/
|
||||
public class CompoundTagConverter implements TagConverter<CompoundTag, Map> {
|
||||
|
||||
@Override
|
||||
public Map convert(CompoundTag tag) {
|
||||
Map<String, Object> ret = new HashMap<String, Object>();
|
||||
@ -35,5 +34,4 @@ public class CompoundTagConverter implements TagConverter<CompoundTag, Map> {
|
||||
|
||||
return new CompoundTag(name, tags);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.DoubleTag;
|
||||
* A converter that converts between DoubleTag and double.
|
||||
*/
|
||||
public class DoubleTagConverter implements TagConverter<DoubleTag, Double> {
|
||||
|
||||
@Override
|
||||
public Double convert(DoubleTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class DoubleTagConverter implements TagConverter<DoubleTag, Double> {
|
||||
public DoubleTag convert(String name, Double value) {
|
||||
return new DoubleTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.FloatTag;
|
||||
* A converter that converts between FloatTag and float.
|
||||
*/
|
||||
public class FloatTagConverter implements TagConverter<FloatTag, Float> {
|
||||
|
||||
@Override
|
||||
public Float convert(FloatTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class FloatTagConverter implements TagConverter<FloatTag, Float> {
|
||||
public FloatTag convert(String name, Float value) {
|
||||
return new FloatTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.IntArrayTag;
|
||||
* A converter that converts between IntArrayTag and int[].
|
||||
*/
|
||||
public class IntArrayTagConverter implements TagConverter<IntArrayTag, int[]> {
|
||||
|
||||
@Override
|
||||
public int[] convert(IntArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class IntArrayTagConverter implements TagConverter<IntArrayTag, int[]> {
|
||||
public IntArrayTag convert(String name, int[] value) {
|
||||
return new IntArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.IntTag;
|
||||
* A converter that converts between IntTag and int.
|
||||
*/
|
||||
public class IntTagConverter implements TagConverter<IntTag, Integer> {
|
||||
|
||||
@Override
|
||||
public Integer convert(IntTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class IntTagConverter implements TagConverter<IntTag, Integer> {
|
||||
public IntTag convert(String name, Integer value) {
|
||||
return new IntTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ import java.util.List;
|
||||
* A converter that converts between CompoundTag and Map.
|
||||
*/
|
||||
public class ListTagConverter implements TagConverter<ListTag, List> {
|
||||
|
||||
@Override
|
||||
public List convert(ListTag tag) {
|
||||
List<Object> ret = new ArrayList<Object>();
|
||||
@ -37,5 +36,4 @@ public class ListTagConverter implements TagConverter<ListTag, List> {
|
||||
|
||||
return new ListTag(name, tags);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.LongTag;
|
||||
* A converter that converts between LongTag and long.
|
||||
*/
|
||||
public class LongTagConverter implements TagConverter<LongTag, Long> {
|
||||
|
||||
@Override
|
||||
public Long convert(LongTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class LongTagConverter implements TagConverter<LongTag, Long> {
|
||||
public LongTag convert(String name, Long value) {
|
||||
return new LongTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.ShortTag;
|
||||
* A converter that converts between ShortTag and short.
|
||||
*/
|
||||
public class ShortTagConverter implements TagConverter<ShortTag, Short> {
|
||||
|
||||
@Override
|
||||
public Short convert(ShortTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class ShortTagConverter implements TagConverter<ShortTag, Short> {
|
||||
public ShortTag convert(String name, Short value) {
|
||||
return new ShortTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.StringTag;
|
||||
* A converter that converts between StringTag and String.
|
||||
*/
|
||||
public class StringTagConverter implements TagConverter<StringTag, String> {
|
||||
|
||||
@Override
|
||||
public String convert(StringTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class StringTagConverter implements TagConverter<StringTag, String> {
|
||||
public StringTag convert(String name, String value) {
|
||||
return new StringTag(name, value);
|
||||
}
|
||||
|
||||
}
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.custom.DoubleArrayTag;
|
||||
* A converter that converts between DoubleArrayTag and double[].
|
||||
*/
|
||||
public class DoubleArrayTagConverter implements TagConverter<DoubleArrayTag, double[]> {
|
||||
|
||||
@Override
|
||||
public double[] convert(DoubleArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class DoubleArrayTagConverter implements TagConverter<DoubleArrayTag, dou
|
||||
public DoubleArrayTag convert(String name, double[] value) {
|
||||
return new DoubleArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.custom.FloatArrayTag;
|
||||
* A converter that converts between FloatArrayTag and float[].
|
||||
*/
|
||||
public class FloatArrayTagConverter implements TagConverter<FloatArrayTag, float[]> {
|
||||
|
||||
@Override
|
||||
public float[] convert(FloatArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class FloatArrayTagConverter implements TagConverter<FloatArrayTag, float
|
||||
public FloatArrayTag convert(String name, float[] value) {
|
||||
return new FloatArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.custom.LongArrayTag;
|
||||
* A converter that converts between LongArrayTag and long[].
|
||||
*/
|
||||
public class LongArrayTagConverter implements TagConverter<LongArrayTag, long[]> {
|
||||
|
||||
@Override
|
||||
public long[] convert(LongArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class LongArrayTagConverter implements TagConverter<LongArrayTag, long[]>
|
||||
public LongArrayTag convert(String name, long[] value) {
|
||||
return new LongArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ import java.io.Serializable;
|
||||
* A converter that converts between SerializableArrayTag and Serializable[].
|
||||
*/
|
||||
public class SerializableArrayTagConverter implements TagConverter<SerializableArrayTag, Serializable[]> {
|
||||
|
||||
@Override
|
||||
public Serializable[] convert(SerializableArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -19,5 +18,4 @@ public class SerializableArrayTagConverter implements TagConverter<SerializableA
|
||||
public SerializableArrayTag convert(String name, Serializable[] value) {
|
||||
return new SerializableArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ import java.io.Serializable;
|
||||
* A converter that converts between SerializableTag and Serializable.
|
||||
*/
|
||||
public class SerializableTagConverter implements TagConverter<SerializableTag, Serializable> {
|
||||
|
||||
@Override
|
||||
public Serializable convert(SerializableTag tag) {
|
||||
return tag.getValue();
|
||||
@ -19,5 +18,4 @@ public class SerializableTagConverter implements TagConverter<SerializableTag, S
|
||||
public SerializableTag convert(String name, Serializable value) {
|
||||
return new SerializableTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.custom.ShortArrayTag;
|
||||
* A converter that converts between ShortArrayTag and short[].
|
||||
*/
|
||||
public class ShortArrayTagConverter implements TagConverter<ShortArrayTag, short[]> {
|
||||
|
||||
@Override
|
||||
public short[] convert(ShortArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class ShortArrayTagConverter implements TagConverter<ShortArrayTag, short
|
||||
public ShortArrayTag convert(String name, short[] value) {
|
||||
return new ShortArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,7 +7,6 @@ import org.spacehq.opennbt.tag.builtin.custom.StringArrayTag;
|
||||
* A converter that converts between StringArrayTag and String[].
|
||||
*/
|
||||
public class StringArrayTagConverter implements TagConverter<StringArrayTag, String[]> {
|
||||
|
||||
@Override
|
||||
public String[] convert(StringArrayTag tag) {
|
||||
return tag.getValue();
|
||||
@ -17,5 +16,4 @@ public class StringArrayTagConverter implements TagConverter<StringArrayTag, Str
|
||||
public StringArrayTag convert(String name, String[] value) {
|
||||
return new StringArrayTag(name, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ package org.spacehq.opennbt.tag;
|
||||
* An exception thrown when an error occurs while created a tag instance.
|
||||
*/
|
||||
public class TagCreateException extends Exception {
|
||||
|
||||
private static final long serialVersionUID = -2022049594558041160L;
|
||||
|
||||
public TagCreateException() {
|
||||
@ -22,5 +21,4 @@ public class TagCreateException extends Exception {
|
||||
public TagCreateException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ package org.spacehq.opennbt.tag;
|
||||
* An exception thrown when an error occurs while registering a tag.
|
||||
*/
|
||||
public class TagRegisterException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = -2022049594558041160L;
|
||||
|
||||
public TagRegisterException() {
|
||||
@ -22,5 +21,4 @@ public class TagRegisterException extends RuntimeException {
|
||||
public TagRegisterException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ import java.util.Map;
|
||||
* A registry containing different tag classes.
|
||||
*/
|
||||
public class TagRegistry {
|
||||
|
||||
private static final Map<Integer, Class<? extends Tag>> idToTag = new HashMap<Integer, Class<? extends Tag>>();
|
||||
private static final Map<Class<? extends Tag>, Integer> tagToId = new HashMap<Class<? extends Tag>, Integer>();
|
||||
|
||||
@ -106,5 +105,4 @@ public class TagRegistry {
|
||||
throw new TagCreateException("Failed to create instance of tag \"" + clazz.getSimpleName() + "\".", e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a byte array.
|
||||
*/
|
||||
public class ByteArrayTag extends Tag {
|
||||
|
||||
private byte[] value;
|
||||
|
||||
/**
|
||||
@ -94,5 +93,4 @@ public class ByteArrayTag extends Tag {
|
||||
public ByteArrayTag clone() {
|
||||
return new ByteArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a byte.
|
||||
*/
|
||||
public class ByteTag extends Tag {
|
||||
|
||||
private byte value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class ByteTag extends Tag {
|
||||
public ByteTag clone() {
|
||||
return new ByteTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import java.util.Map.Entry;
|
||||
* A compound tag containing other tags.
|
||||
*/
|
||||
public class CompoundTag extends Tag implements Iterable<Tag> {
|
||||
|
||||
private Map<String, Tag> value;
|
||||
|
||||
/**
|
||||
@ -173,5 +172,4 @@ public class CompoundTag extends Tag implements Iterable<Tag> {
|
||||
|
||||
return new CompoundTag(this.getName(), newMap);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a double.
|
||||
*/
|
||||
public class DoubleTag extends Tag {
|
||||
|
||||
private double value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class DoubleTag extends Tag {
|
||||
public DoubleTag clone() {
|
||||
return new DoubleTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a float.
|
||||
*/
|
||||
public class FloatTag extends Tag {
|
||||
|
||||
private float value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class FloatTag extends Tag {
|
||||
public FloatTag clone() {
|
||||
return new FloatTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing an integer array.
|
||||
*/
|
||||
public class IntArrayTag extends Tag {
|
||||
|
||||
private int[] value;
|
||||
|
||||
/**
|
||||
@ -98,5 +97,4 @@ public class IntArrayTag extends Tag {
|
||||
public IntArrayTag clone() {
|
||||
return new IntArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing an integer.
|
||||
*/
|
||||
public class IntTag extends Tag {
|
||||
|
||||
private int value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class IntTag extends Tag {
|
||||
public IntTag clone() {
|
||||
return new IntTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ import java.util.List;
|
||||
* A tag containing a list of tags.
|
||||
*/
|
||||
public class ListTag extends Tag implements Iterable<Tag> {
|
||||
|
||||
private Class<? extends Tag> type;
|
||||
private List<Tag> value;
|
||||
|
||||
@ -193,5 +192,4 @@ public class ListTag extends Tag implements Iterable<Tag> {
|
||||
|
||||
return new ListTag(this.getName(), newList);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a long.
|
||||
*/
|
||||
public class LongTag extends Tag {
|
||||
|
||||
private long value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class LongTag extends Tag {
|
||||
public LongTag clone() {
|
||||
return new LongTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.IOException;
|
||||
* A tag containing a short.
|
||||
*/
|
||||
public class ShortTag extends Tag {
|
||||
|
||||
private short value;
|
||||
|
||||
/**
|
||||
@ -59,5 +58,4 @@ public class ShortTag extends Tag {
|
||||
public ShortTag clone() {
|
||||
return new ShortTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
||||
* A tag containing a string.
|
||||
*/
|
||||
public class StringTag extends Tag {
|
||||
|
||||
private String value;
|
||||
|
||||
/**
|
||||
@ -65,5 +64,4 @@ public class StringTag extends Tag {
|
||||
public StringTag clone() {
|
||||
return new StringTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ import java.lang.reflect.Array;
|
||||
* Tags should also have setter methods specific to their value types.
|
||||
*/
|
||||
public abstract class Tag implements Cloneable {
|
||||
|
||||
private String name;
|
||||
|
||||
/**
|
||||
@ -120,5 +119,4 @@ public abstract class Tag implements Cloneable {
|
||||
|
||||
return this.getClass().getSimpleName() + name + " { " + value + " }";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
||||
* A tag containing a double array.
|
||||
*/
|
||||
public class DoubleArrayTag extends Tag {
|
||||
|
||||
private double[] value;
|
||||
|
||||
/**
|
||||
@ -100,5 +99,4 @@ public class DoubleArrayTag extends Tag {
|
||||
public DoubleArrayTag clone() {
|
||||
return new DoubleArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
||||
* A tag containing a float array.
|
||||
*/
|
||||
public class FloatArrayTag extends Tag {
|
||||
|
||||
private float[] value;
|
||||
|
||||
/**
|
||||
@ -100,5 +99,4 @@ public class FloatArrayTag extends Tag {
|
||||
public FloatArrayTag clone() {
|
||||
return new FloatArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
||||
* A tag containing a long array.
|
||||
*/
|
||||
public class LongArrayTag extends Tag {
|
||||
|
||||
private long[] value;
|
||||
|
||||
/**
|
||||
@ -100,5 +99,4 @@ public class LongArrayTag extends Tag {
|
||||
public LongArrayTag clone() {
|
||||
return new LongArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.*;
|
||||
* A tag containing an array of serializable objects.
|
||||
*/
|
||||
public class SerializableArrayTag extends Tag {
|
||||
|
||||
private Serializable[] value;
|
||||
|
||||
/**
|
||||
@ -104,5 +103,4 @@ public class SerializableArrayTag extends Tag {
|
||||
public SerializableArrayTag clone() {
|
||||
return new SerializableArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import java.io.*;
|
||||
* A tag containing a serializable object.
|
||||
*/
|
||||
public class SerializableTag extends Tag {
|
||||
|
||||
private Serializable value;
|
||||
|
||||
/**
|
||||
@ -65,5 +64,4 @@ public class SerializableTag extends Tag {
|
||||
public SerializableTag clone() {
|
||||
return new SerializableTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ import java.io.IOException;
|
||||
* A tag containing a short array.
|
||||
*/
|
||||
public class ShortArrayTag extends Tag {
|
||||
|
||||
private short[] value;
|
||||
|
||||
/**
|
||||
@ -100,5 +99,4 @@ public class ShortArrayTag extends Tag {
|
||||
public ShortArrayTag clone() {
|
||||
return new ShortArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ import java.io.IOException;
|
||||
* A tag containing a string array.
|
||||
*/
|
||||
public class StringArrayTag extends Tag {
|
||||
|
||||
private String[] value;
|
||||
|
||||
/**
|
||||
@ -105,5 +104,4 @@ public class StringArrayTag extends Tag {
|
||||
public StringArrayTag clone() {
|
||||
return new StringArrayTag(this.getName(), this.getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user