From 1fcd8b7a4df37a67609667c560ca65dedd9e5a5a Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Thu, 13 Aug 2020 17:43:55 -0700 Subject: [PATCH] Renamed ItemSerializer to ItemReader to allow room for ItemWriter counterpart --- core/src/com/riiablo/item/Item.java | 4 ++-- .../com/riiablo/item/{ItemSerializer.java => ItemReader.java} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename core/src/com/riiablo/item/{ItemSerializer.java => ItemReader.java} (98%) diff --git a/core/src/com/riiablo/item/Item.java b/core/src/com/riiablo/item/Item.java index e41a8f5c..6f762059 100644 --- a/core/src/com/riiablo/item/Item.java +++ b/core/src/com/riiablo/item/Item.java @@ -30,11 +30,11 @@ public class Item { private static final boolean SIMPLE_FLAGS = !true; private static final boolean ONLY_KNOWN_FLAGS = SIMPLE_FLAGS && true; - private static final ItemSerializer DEFAULT_SERIALIZER = new ItemSerializer(); + private static final ItemReader DEFAULT_SERIALIZER = new ItemReader(); private static final ItemLabeler DEFAULT_LABELER = new ItemLabeler(); /** - * @deprecated use {@link ItemSerializer#readItem(ByteInput)} instead! + * @deprecated use {@link ItemReader#readItem(ByteInput)} instead! */ @Deprecated public static Item loadFromStream(BitStream bitStream) { diff --git a/core/src/com/riiablo/item/ItemSerializer.java b/core/src/com/riiablo/item/ItemReader.java similarity index 98% rename from core/src/com/riiablo/item/ItemSerializer.java rename to core/src/com/riiablo/item/ItemReader.java index 5c4d7ac2..eaa2bfa8 100644 --- a/core/src/com/riiablo/item/ItemSerializer.java +++ b/core/src/com/riiablo/item/ItemReader.java @@ -12,8 +12,8 @@ import com.riiablo.io.ByteInput; import com.riiablo.log.Log; import com.riiablo.log.LogManager; -public class ItemSerializer { - private static final Logger log = LogManager.getLogger(ItemSerializer.class); +public class ItemReader { + private static final Logger log = LogManager.getLogger(ItemReader.class); private static final byte[] SIGNATURE = {0x4A, 0x4D};