Reformat
This commit is contained in:
@@ -16,11 +16,7 @@
|
||||
*/
|
||||
package com.drtshock.playervaults;
|
||||
|
||||
import com.drtshock.playervaults.commands.DeleteCommand;
|
||||
import com.drtshock.playervaults.commands.SignCommand;
|
||||
import com.drtshock.playervaults.commands.SignSetInfo;
|
||||
import com.drtshock.playervaults.commands.VaultCommand;
|
||||
import com.drtshock.playervaults.commands.WorkbenchCommand;
|
||||
import com.drtshock.playervaults.commands.*;
|
||||
import com.drtshock.playervaults.listeners.Listeners;
|
||||
import com.drtshock.playervaults.tasks.Cleanup;
|
||||
import com.drtshock.playervaults.tasks.UUIDConversion;
|
||||
|
||||
@@ -107,7 +107,7 @@ public class Serialization {
|
||||
}
|
||||
|
||||
public static Map<String, Object> serialize(ConfigurationSerializable cs) {
|
||||
Map<String,Object> returnVal = handleSerialization(cs.serialize());
|
||||
Map<String, Object> returnVal = handleSerialization(cs.serialize());
|
||||
returnVal.put(ConfigurationSerialization.SERIALIZED_TYPE_KEY, ConfigurationSerialization.getAlias(cs.getClass()));
|
||||
return returnVal;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ public class Serialization {
|
||||
newList.add(object);
|
||||
}
|
||||
entry.setValue(newList);
|
||||
} else if (entry.getValue() instanceof Map<?,?>) {
|
||||
} else if (entry.getValue() instanceof Map<?, ?>) {
|
||||
// unchecked cast here. If you're serializing to a non-standard Map you deserve ClassCastExceptions
|
||||
entry.setValue(handleSerialization((Map<String, Object>) entry.getValue()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user