Archiviert
13
0

Rename to SerializableCloner.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2013-07-17 15:49:35 +02:00
Ursprung e7aa1ca98c
Commit 35d5912275
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -53,7 +53,7 @@ import com.comphenix.protocol.reflect.cloning.Cloner;
import com.comphenix.protocol.reflect.cloning.CollectionCloner; import com.comphenix.protocol.reflect.cloning.CollectionCloner;
import com.comphenix.protocol.reflect.cloning.FieldCloner; import com.comphenix.protocol.reflect.cloning.FieldCloner;
import com.comphenix.protocol.reflect.cloning.ImmutableDetector; 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.cloning.AggregateCloner.BuilderParameters;
import com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract; import com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract;
import com.comphenix.protocol.reflect.instances.DefaultInstances; 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 // Fall back on the alternative (but slower) method of reading and writing back the packet
if (CLONING_UNSUPPORTED.contains(id)) { if (CLONING_UNSUPPORTED.contains(id)) {
clonedPacket = ReflectionCloner.clone(this).getHandle(); clonedPacket = SerializableCloner.clone(this).getHandle();
} else { } else {
clonedPacket = DEEP_CLONER.clone(getHandle()); clonedPacket = DEEP_CLONER.clone(getHandle());
} }

Datei anzeigen

@ -10,7 +10,7 @@ import java.io.Serializable;
* Represents a cloner that can clone any class that implements Serializable. * Represents a cloner that can clone any class that implements Serializable.
* @author Kristian Stangeland * @author Kristian Stangeland
*/ */
public class ReflectionCloner implements Cloner { public class SerializableCloner implements Cloner {
@Override @Override
public boolean canClone(Object source) { public boolean canClone(Object source) {