From 35d5912275277180850177a6b3df0eacb603b657 Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Wed, 17 Jul 2013 15:49:35 +0200 Subject: [PATCH] Rename to SerializableCloner. --- .../java/com/comphenix/protocol/events/PacketContainer.java | 4 ++-- .../{ReflectionCloner.java => SerializableCloner.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/{ReflectionCloner.java => SerializableCloner.java} (95%) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java index 22b3be8a..b234d379 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -53,7 +53,7 @@ import com.comphenix.protocol.reflect.cloning.Cloner; import com.comphenix.protocol.reflect.cloning.CollectionCloner; import com.comphenix.protocol.reflect.cloning.FieldCloner; import com.comphenix.protocol.reflect.cloning.ImmutableDetector; -import com.comphenix.protocol.reflect.cloning.ReflectionCloner; +import com.comphenix.protocol.reflect.cloning.SerializableCloner; import com.comphenix.protocol.reflect.cloning.AggregateCloner.BuilderParameters; import com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract; import com.comphenix.protocol.reflect.instances.DefaultInstances; @@ -436,7 +436,7 @@ public class PacketContainer implements Serializable { // Fall back on the alternative (but slower) method of reading and writing back the packet if (CLONING_UNSUPPORTED.contains(id)) { - clonedPacket = ReflectionCloner.clone(this).getHandle(); + clonedPacket = SerializableCloner.clone(this).getHandle(); } else { clonedPacket = DEEP_CLONER.clone(getHandle()); } diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/ReflectionCloner.java b/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/SerializableCloner.java similarity index 95% rename from ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/ReflectionCloner.java rename to ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/SerializableCloner.java index 2c4d3492..8358a9a0 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/ReflectionCloner.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/reflect/cloning/SerializableCloner.java @@ -10,7 +10,7 @@ import java.io.Serializable; * Represents a cloner that can clone any class that implements Serializable. * @author Kristian Stangeland */ -public class ReflectionCloner implements Cloner { +public class SerializableCloner implements Cloner { @Override public boolean canClone(Object source) {