Bump to MCore3
This commit is contained in:
parent
738bb84dd8
commit
8b5c8fd354
@ -1,4 +1,3 @@
|
||||
name: mcore2
|
||||
name: mcore3
|
||||
version: 1.0.0
|
||||
main: com.massivecraft.mcore2.MCore
|
||||
authors: [Olof Larsson, Brett Flannigan]
|
||||
main: com.massivecraft.mcore3.MCore
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2;
|
||||
package com.massivecraft.mcore3;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -7,9 +7,9 @@ import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerPreLoginEvent;
|
||||
|
||||
import com.massivecraft.mcore2.persist.IClassManager;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.PlayerUtil;
|
||||
import com.massivecraft.mcore3.persist.IClassManager;
|
||||
import com.massivecraft.mcore3.persist.Persist;
|
||||
import com.massivecraft.mcore3.util.PlayerUtil;
|
||||
|
||||
public class InternalListener implements Listener
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2;
|
||||
package com.massivecraft.mcore3;
|
||||
|
||||
public class Lang
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2;
|
||||
package com.massivecraft.mcore3;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.HashMap;
|
||||
@ -9,13 +9,13 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.massivecraft.mcore2.cmd.Cmd;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.persist.One;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.LibLoader;
|
||||
import com.massivecraft.mcore2.util.PlayerUtil;
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.cmd.Cmd;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.persist.One;
|
||||
import com.massivecraft.mcore3.persist.Persist;
|
||||
import com.massivecraft.mcore3.util.LibLoader;
|
||||
import com.massivecraft.mcore3.util.PlayerUtil;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
public class MCore extends JavaPlugin
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2;
|
||||
package com.massivecraft.mcore3;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@ -7,13 +7,13 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.massivecraft.mcore2.cmd.Cmd;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.persist.One;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.LibLoader;
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.cmd.Cmd;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.persist.One;
|
||||
import com.massivecraft.mcore3.persist.Persist;
|
||||
import com.massivecraft.mcore3.util.LibLoader;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
public abstract class MPlugin extends JavaPlugin implements Listener
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2;
|
||||
package com.massivecraft.mcore3;
|
||||
|
||||
public interface Predictate<T>
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
package com.massivecraft.mcore3.cmd;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
public class BukkitGlueCommand extends Command
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
package com.massivecraft.mcore3.cmd;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
@ -11,16 +11,16 @@ import org.bukkit.command.SimpleCommandMap;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2.cmd.arg.AHBoolean;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHByte;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHDate;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHDouble;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHFloat;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHInteger;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHMaterial;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHPlayer;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHWorld;
|
||||
import com.massivecraft.mcore2.cmd.arg.IArgHandler;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHBoolean;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHByte;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHDate;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHDouble;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHFloat;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHInteger;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHMaterial;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHPlayer;
|
||||
import com.massivecraft.mcore3.cmd.arg.AHWorld;
|
||||
import com.massivecraft.mcore3.cmd.arg.IArgHandler;
|
||||
|
||||
public class Cmd
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
package com.massivecraft.mcore3.cmd;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
import com.massivecraft.mcore3.cmd.MCommand;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
public class HelpCommand extends MCommand
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
package com.massivecraft.mcore3.cmd;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
@ -7,14 +7,14 @@ import java.util.logging.Level;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2.Lang;
|
||||
import com.massivecraft.mcore2.MCore;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.cmd.arg.IArgHandler;
|
||||
import com.massivecraft.mcore2.cmd.req.IReq;
|
||||
import com.massivecraft.mcore2.cmd.req.ReqHasPerm;
|
||||
import com.massivecraft.mcore2.util.Perm;
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.Lang;
|
||||
import com.massivecraft.mcore3.MCore;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
import com.massivecraft.mcore3.cmd.arg.IArgHandler;
|
||||
import com.massivecraft.mcore3.cmd.req.IReq;
|
||||
import com.massivecraft.mcore3.cmd.req.ReqHasPerm;
|
||||
import com.massivecraft.mcore3.util.Perm;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
public abstract class MCommand
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
package com.massivecraft.mcore3.cmd;
|
||||
|
||||
public enum VisibilityMode
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public abstract class AHBase<T> implements IArgHandler<T>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
public class AHBoolean extends AHPrimitive<Boolean>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
public class AHByte extends AHPrimitive<Byte>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
public class AHDouble extends AHPrimitive<Double>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
public class AHFloat extends AHPrimitive<Float>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
public class AHInteger extends AHPrimitive<Integer>
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public class AHMaterial extends AHBase<Material>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -6,7 +6,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public class AHPlayer extends AHBase<Player>
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.persist.IClassManager;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.PlayerUtil;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
import com.massivecraft.mcore3.persist.IClassManager;
|
||||
import com.massivecraft.mcore3.persist.Persist;
|
||||
import com.massivecraft.mcore3.util.PlayerUtil;
|
||||
|
||||
public abstract class AHPlayerWrapper<T> extends AHBase<T>
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public abstract class AHPrimitive<T> extends AHBase<T>
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public class AHWorld extends AHBase<World>
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
package com.massivecraft.mcore3.cmd.arg;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
|
||||
public interface IArgHandler<T>
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
package com.massivecraft.mcore3.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore3.cmd.MCommand;
|
||||
|
||||
public interface IReq
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
package com.massivecraft.mcore3.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.util.Perm;
|
||||
import com.massivecraft.mcore3.cmd.MCommand;
|
||||
import com.massivecraft.mcore3.util.Perm;
|
||||
|
||||
public class ReqHasPerm implements IReq
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
package com.massivecraft.mcore3.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2.Lang;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore3.Lang;
|
||||
import com.massivecraft.mcore3.cmd.MCommand;
|
||||
|
||||
public class ReqIsPlayer implements IReq
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.gson;
|
||||
package com.massivecraft.mcore3.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
@ -11,14 +11,14 @@ import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
|
||||
public class InventoryTypeAdapter implements JsonDeserializer<Inventory>, JsonSerializer<Inventory>
|
||||
{
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.sql.Timestamp;
|
||||
@ -25,15 +25,15 @@ import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
|
||||
/**
|
||||
* This type adapter supports three subclasses of date: Date, Timestamp, and
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldAttributes;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldAttributes;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
|
||||
/**
|
||||
* A strategy (or policy) definition that is used to decide whether or not a field or top-level
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Field;
|
@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingStrategy;
|
||||
|
||||
/**
|
||||
* An enumeration that defines a few standard naming conventions for JSON field names.
|
||||
* This enumeration should be used in conjunction with {@link com.massivecraft.mcore2.lib.gson.GsonBuilder}
|
||||
* to configure a {@link com.massivecraft.mcore2.lib.gson.Gson} instance to properly translate Java field
|
||||
* This enumeration should be used in conjunction with {@link com.massivecraft.mcore3.lib.gson.GsonBuilder}
|
||||
* to configure a {@link com.massivecraft.mcore3.lib.gson.Gson} instance to properly translate Java field
|
||||
* names into the desired JSON field names.
|
||||
*
|
||||
* @author Inderjeet Singh
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
@ -14,48 +14,48 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingPolicy;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.LongSerializationPolicy;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ArrayTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.BigDecimalTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.BigIntegerTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.CollectionTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.DateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.MapTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ObjectTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.SqlDateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TimeTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingPolicy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.LongSerializationPolicy;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ArrayTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.BigDecimalTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.BigIntegerTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.CollectionTypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.DateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.MapTypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ObjectTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.SqlDateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TimeTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.MalformedJsonException;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
@ -109,7 +109,7 @@ import java.util.Map;
|
||||
* <p>See the <a href="https://sites.google.com/site/gson/gson-user-guide">Gson User Guide</a>
|
||||
* for a more complete set of examples.</p>
|
||||
*
|
||||
* @see com.massivecraft.mcore2.lib.gson.reflect.TypeToken
|
||||
* @see com.massivecraft.mcore3.lib.gson.reflect.TypeToken
|
||||
*
|
||||
* @author Inderjeet Singh
|
||||
* @author Joel Leitch
|
||||
@ -180,10 +180,10 @@ public final class Gson {
|
||||
* ignores the millisecond portion of the date during serialization. You can change
|
||||
* this by invoking {@link GsonBuilder#setDateFormat(int)} or
|
||||
* {@link GsonBuilder#setDateFormat(String)}. </li>
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore2.lib.gson.annotations.Expose} annotation.
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore3.lib.gson.annotations.Expose} annotation.
|
||||
* You can enable Gson to serialize/deserialize only those fields marked with this annotation
|
||||
* through {@link GsonBuilder#excludeFieldsWithoutExposeAnnotation()}. </li>
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore2.lib.gson.annotations.Since} annotation. You
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore3.lib.gson.annotations.Since} annotation. You
|
||||
* can enable Gson to use this annotation through {@link GsonBuilder#setVersion(double)}.</li>
|
||||
* <li>The default field naming policy for the output Json is same as in Java. So, a Java class
|
||||
* field <code>versionNumber</code> will be output as <code>"versionNumber@quot;</code> in
|
||||
@ -444,7 +444,7 @@ public final class Gson {
|
||||
*
|
||||
* @param src the object for which JSON representation is to be created
|
||||
* @param typeOfSrc The specific genericized type of src. You can obtain
|
||||
* this type by using the {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example,
|
||||
* to get the type for {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfSrc = new TypeToken<Collection<Foo>>(){}.getType();
|
||||
@ -486,7 +486,7 @@ public final class Gson {
|
||||
*
|
||||
* @param src the object for which JSON representation is to be created
|
||||
* @param typeOfSrc The specific genericized type of src. You can obtain
|
||||
* this type by using the {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example,
|
||||
* to get the type for {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfSrc = new TypeToken<Collection<Foo>>(){}.getType();
|
||||
@ -528,7 +528,7 @@ public final class Gson {
|
||||
*
|
||||
* @param src the object for which JSON representation is to be created
|
||||
* @param typeOfSrc The specific genericized type of src. You can obtain
|
||||
* this type by using the {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example,
|
||||
* to get the type for {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfSrc = new TypeToken<Collection<Foo>>(){}.getType();
|
||||
@ -670,7 +670,7 @@ public final class Gson {
|
||||
* @param <T> the type of the desired object
|
||||
* @param json the string from which the object is to be deserialized
|
||||
* @param typeOfT The specific genericized type of src. You can obtain this type by using the
|
||||
* {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfT = new TypeToken<Collection<Foo>>(){}.getType();
|
||||
@ -723,7 +723,7 @@ public final class Gson {
|
||||
* @param <T> the type of the desired object
|
||||
* @param json the reader producing Json from which the object is to be deserialized
|
||||
* @param typeOfT The specific genericized type of src. You can obtain this type by using the
|
||||
* {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfT = new TypeToken<Collection<Foo>>(){}.getType();
|
||||
@ -820,7 +820,7 @@ public final class Gson {
|
||||
* @param json the root of the parse tree of {@link JsonElement}s from which the object is to
|
||||
* be deserialized
|
||||
* @param typeOfT The specific genericized type of src. You can obtain this type by using the
|
||||
* {@link com.massivecraft.mcore2.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@code Collection<Foo>}, you should use:
|
||||
* <pre>
|
||||
* Type typeOfT = new TypeToken<Collection<Foo>>(){}.getType();
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.sql.Timestamp;
|
||||
@ -26,25 +26,25 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingPolicy;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore2.lib.gson.LongSerializationPolicy;
|
||||
import com.massivecraft.mcore2.lib.gson.TreeTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingPolicy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.LongSerializationPolicy;
|
||||
import com.massivecraft.mcore3.lib.gson.TreeTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
|
||||
/**
|
||||
* <p>Use this builder to construct a {@link Gson} instance when you need to set configuration
|
||||
@ -152,7 +152,7 @@ public final class GsonBuilder {
|
||||
|
||||
/**
|
||||
* Configures Gson to exclude all fields from consideration for serialization or deserialization
|
||||
* that do not have the {@link com.massivecraft.mcore2.lib.gson.annotations.Expose} annotation.
|
||||
* that do not have the {@link com.massivecraft.mcore3.lib.gson.annotations.Expose} annotation.
|
||||
*
|
||||
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern
|
||||
*/
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
|
||||
/**
|
||||
* This interface is implemented to create instances of a class that does not define a no-args
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
@ -22,10 +22,10 @@ import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
|
||||
/**
|
||||
* A class representing an array type in Json. An array is a list of {@link JsonElement}s each of
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
|
||||
/**
|
||||
* Context for deserialization that is passed to a custom deserializer during invocation of its
|
@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
|
||||
/**
|
||||
* <p>Interface representing a custom deserializer for Json. You should write a custom
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringWriter;
|
@ -13,9 +13,9 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
|
||||
/**
|
||||
* This exception is raised when Gson was unable to read an input stream
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
|
||||
/**
|
||||
* A class representing a Json {@code null} value.
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
|
||||
/**
|
||||
* This exception is raised if there is a serious issue that occurs during parsing of a Json
|
@ -13,17 +13,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.MalformedJsonException;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.LazilyParsedNumber;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.LazilyParsedNumber;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
|
||||
/**
|
||||
* Context for serialization that is passed to a custom serializer during invocation of its
|
@ -14,18 +14,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
|
||||
/**
|
||||
* Interface representing a custom serializer for Json. You should write a custom serializer, if
|
||||
* you are not happy with the default serialization done by Gson. You will also need to register
|
||||
* this serializer through {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#registerTypeAdapter(Type, Object)}.
|
||||
* this serializer through {@link com.massivecraft.mcore3.lib.gson.GsonBuilder#registerTypeAdapter(Type, Object)}.
|
||||
*
|
||||
* <p>Let us look at example where defining a serializer will be useful. The {@code Id} class
|
||||
* defined below has two fields: {@code clazz} and {@code value}.</p>
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
@ -22,14 +22,14 @@ import java.io.StringReader;
|
||||
import java.util.Iterator;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.MalformedJsonException;
|
||||
|
||||
/**
|
||||
* A streaming parser that allows reading of multiple {@link JsonElement}s from the specified reader
|
@ -13,9 +13,9 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
|
||||
/**
|
||||
* This exception is raised when Gson attempts to read (or write) a malformed
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
|
||||
/**
|
||||
* Defines the expected format for a {@code long} or {@code Long} type when its serialized.
|
@ -14,21 +14,21 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore2.lib.gson.TreeTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
|
||||
import com.massivecraft.mcore3.lib.gson.TreeTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
||||
@ -138,7 +138,7 @@ public abstract class TypeAdapter<T> {
|
||||
* Unlike Gson's similar {@link Gson#toJson(JsonElement, Appendable) toJson}
|
||||
* method, this write is strict. Create a {@link
|
||||
* JsonWriter#setLenient(boolean) lenient} {@code JsonWriter} and call
|
||||
* {@link #write(com.massivecraft.mcore2.lib.gson.stream.JsonWriter, Object)} for lenient
|
||||
* {@link #write(com.massivecraft.mcore3.lib.gson.stream.JsonWriter, Object)} for lenient
|
||||
* writing.
|
||||
*
|
||||
* @param value the Java object to convert. May be null.
|
||||
@ -211,7 +211,7 @@ public abstract class TypeAdapter<T> {
|
||||
* Converts {@code value} to a JSON document. Unlike Gson's similar {@link
|
||||
* Gson#toJson(Object) toJson} method, this write is strict. Create a {@link
|
||||
* JsonWriter#setLenient(boolean) lenient} {@code JsonWriter} and call
|
||||
* {@link #write(com.massivecraft.mcore2.lib.gson.stream.JsonWriter, Object)} for lenient
|
||||
* {@link #write(com.massivecraft.mcore3.lib.gson.stream.JsonWriter, Object)} for lenient
|
||||
* writing.
|
||||
*
|
||||
* @param value the Java object to convert. May be null.
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
|
||||
/**
|
||||
* Creates type adapters for set of related types. Type adapter factories are
|
||||
@ -82,7 +82,7 @@ import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
* mapping from lowercase name to enum value is computed eagerly.
|
||||
*
|
||||
* <p>As with type adapters, factories must be <i>registered</i> with a {@link
|
||||
* com.massivecraft.mcore2.lib.gson.GsonBuilder} for them to take effect: <pre> {@code
|
||||
* com.massivecraft.mcore3.lib.gson.GsonBuilder} for them to take effect: <pre> {@code
|
||||
*
|
||||
* GsonBuilder builder = new GsonBuilder();
|
||||
* builder.registerTypeAdapterFactory(new LowercaseEnumTypeAdapterFactory());
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
||||
package com.massivecraft.mcore3.lib.gson.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
@ -25,9 +25,9 @@ import java.lang.annotation.Target;
|
||||
* An annotation that indicates this member should be exposed for JSON
|
||||
* serialization or deserialization.
|
||||
*
|
||||
* <p>This annotation has no effect unless you build {@link com.massivecraft.mcore2.lib.gson.Gson}
|
||||
* with a {@link com.massivecraft.mcore2.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#excludeFieldsWithoutExposeAnnotation()}
|
||||
* <p>This annotation has no effect unless you build {@link com.massivecraft.mcore3.lib.gson.Gson}
|
||||
* with a {@link com.massivecraft.mcore3.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder#excludeFieldsWithoutExposeAnnotation()}
|
||||
* method.</p>
|
||||
*
|
||||
* <p>Here is an example of how this annotation is meant to be used:
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
||||
package com.massivecraft.mcore3.lib.gson.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
@ -25,10 +25,10 @@ import java.lang.annotation.Target;
|
||||
* An annotation that indicates this member should be serialized to JSON with
|
||||
* the provided name value as its field name.
|
||||
*
|
||||
* <p>This annotation will override any {@link com.massivecraft.mcore2.lib.gson.FieldNamingPolicy}, including
|
||||
* the default field naming policy, that may have been set on the {@link com.massivecraft.mcore2.lib.gson.Gson}
|
||||
* <p>This annotation will override any {@link com.massivecraft.mcore3.lib.gson.FieldNamingPolicy}, including
|
||||
* the default field naming policy, that may have been set on the {@link com.massivecraft.mcore3.lib.gson.Gson}
|
||||
* instance. A different naming policy can set using the {@code GsonBuilder} class. See
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#setFieldNamingPolicy(com.massivecraft.mcore2.lib.gson.FieldNamingPolicy)}
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder#setFieldNamingPolicy(com.massivecraft.mcore3.lib.gson.FieldNamingPolicy)}
|
||||
* for more information.</p>
|
||||
*
|
||||
* <p>Here is an example of how this annotation is meant to be used:</p>
|
||||
@ -58,7 +58,7 @@ import java.lang.annotation.Target;
|
||||
*
|
||||
* <p>NOTE: The value you specify in this annotation must be a valid JSON field name.</p>
|
||||
*
|
||||
* @see com.massivecraft.mcore2.lib.gson.FieldNamingPolicy
|
||||
* @see com.massivecraft.mcore3.lib.gson.FieldNamingPolicy
|
||||
*
|
||||
* @author Inderjeet Singh
|
||||
* @author Joel Leitch
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
||||
package com.massivecraft.mcore3.lib.gson.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
@ -26,9 +26,9 @@ import java.lang.annotation.Target;
|
||||
* This annotation is useful to manage versioning of your Json classes for a web-service.
|
||||
*
|
||||
* <p>
|
||||
* This annotation has no effect unless you build {@link com.massivecraft.mcore2.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
* This annotation has no effect unless you build {@link com.massivecraft.mcore3.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
*
|
||||
* <p>Here is an example of how this annotation is meant to be used:</p>
|
||||
* <pre>
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
||||
package com.massivecraft.mcore3.lib.gson.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
@ -28,9 +28,9 @@ import java.lang.annotation.Target;
|
||||
* is useful to manage versioning of your JSON classes for a web-service.
|
||||
*
|
||||
* <p>
|
||||
* This annotation has no effect unless you build {@link com.massivecraft.mcore2.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
* This annotation has no effect unless you build {@link com.massivecraft.mcore3.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore3.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
*
|
||||
* <p>Here is an example of how this annotation is meant to be used:</p>
|
||||
* <pre>
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* This package provides annotations that can be used with {@link com.massivecraft.mcore2.lib.gson.Gson}.
|
||||
* This package provides annotations that can be used with {@link com.massivecraft.mcore3.lib.gson.Gson}.
|
||||
*
|
||||
* @author Inderjeet Singh, Joel Leitch
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
||||
package com.massivecraft.mcore3.lib.gson.annotations;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
/**
|
||||
* A simple utility class used to check method Preconditions.
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import static com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions.checkArgument;
|
||||
import static com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions.checkNotNull;
|
||||
import static com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions.checkArgument;
|
||||
import static com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions.checkNotNull;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.UnsafeAllocator;
|
||||
import com.massivecraft.mcore2.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.UnsafeAllocator;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
@ -14,21 +14,21 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldAttributes;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Expose;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Since;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Until;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldAttributes;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.annotations.Expose;
|
||||
import com.massivecraft.mcore3.lib.gson.annotations.Since;
|
||||
import com.massivecraft.mcore3.lib.gson.annotations.Until;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.GsonInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
|
||||
/**
|
||||
* Internal-only APIs of Gson available only to other classes in Gson.
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
/**
|
||||
* Defines a generic object construction factory. The purpose of this class
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Pair;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Pair;
|
||||
|
||||
/**
|
||||
* A simple object that holds onto a pair of object references, first and second.
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.Collections;
|
@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.MalformedJsonException;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
||||
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectStreamClass;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.UnsafeAllocator;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.UnsafeAllocator;
|
||||
|
||||
/**
|
||||
* Do sneaky things to allocate objects without invoking their constructors.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
@ -23,16 +23,16 @@ import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ArrayTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ArrayTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
/**
|
||||
* Adapt an array of objects.
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.math.BigInteger;
|
@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.DateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.DateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.DateFormat;
|
@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Reader;
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
@ -14,27 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ObjectTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ObjectTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
@ -14,25 +14,25 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore2.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.SerializedName;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.FieldNamingStrategy;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.annotations.SerializedName;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Excluder;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.SqlDateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.SqlDateTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.text.DateFormat;
|
@ -14,17 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TimeTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.TimeTypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Time;
|
@ -13,14 +13,14 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore3.lib.gson.internal.bind;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
@ -32,22 +32,22 @@ import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.SerializedName;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.LazilyParsedNumber;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.Gson;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore3.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapter;
|
||||
import com.massivecraft.mcore3.lib.gson.TypeAdapterFactory;
|
||||
import com.massivecraft.mcore3.lib.gson.annotations.SerializedName;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.LazilyParsedNumber;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
/**
|
||||
* Type adapters for basic types.
|
@ -4,4 +4,4 @@
|
||||
*
|
||||
* @author Inderjeet Singh, Joel Leitch, Jesse Wilson
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
package com.massivecraft.mcore3.lib.gson.internal;
|
@ -1,11 +1,11 @@
|
||||
/**
|
||||
* This package provides the {@link com.massivecraft.mcore2.lib.gson.Gson} class to convert Json to Java and
|
||||
* This package provides the {@link com.massivecraft.mcore3.lib.gson.Gson} class to convert Json to Java and
|
||||
* vice-versa.
|
||||
*
|
||||
* <p>The primary class to use is {@link com.massivecraft.mcore2.lib.gson.Gson} which can be constructed with
|
||||
* {@code new Gson()} (using default settings) or by using {@link com.massivecraft.mcore2.lib.gson.GsonBuilder}
|
||||
* <p>The primary class to use is {@link com.massivecraft.mcore3.lib.gson.Gson} which can be constructed with
|
||||
* {@code new Gson()} (using default settings) or by using {@link com.massivecraft.mcore3.lib.gson.GsonBuilder}
|
||||
* (to configure various options such as using versioning and so on).</p>
|
||||
*
|
||||
* @author Inderjeet Singh, Joel Leitch
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
package com.massivecraft.mcore3.lib.gson;
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.reflect;
|
||||
package com.massivecraft.mcore3.lib.gson.reflect;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore3.lib.gson.reflect.TypeToken;
|
||||
|
||||
import java.lang.reflect.GenericArrayType;
|
||||
import java.lang.reflect.ParameterizedType;
|
@ -3,4 +3,4 @@
|
||||
*
|
||||
* @author Inderjeet Singh, Joel Leitch
|
||||
*/
|
||||
package com.massivecraft.mcore2.lib.gson.reflect;
|
||||
package com.massivecraft.mcore3.lib.gson.reflect;
|
@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonScope;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.StringPool;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.JsonReaderInternalAccess;
|
||||
import com.massivecraft.mcore3.lib.gson.internal.bind.JsonTreeReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonScope;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.StringPool;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.EOFException;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
/**
|
||||
* Lexical scoping elements within a JSON reader or writer.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
/**
|
||||
* A structure, name or value type in a JSON-encoded string.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
@ -22,8 +22,8 @@ import java.io.Writer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonScope;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonScope;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonWriter;
|
||||
|
||||
/**
|
||||
* Writes a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>)
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore3.lib.gson.stream.JsonReader;
|
||||
|
||||
/**
|
||||
* Thrown when a reader encounters malformed JSON. Some syntax errors can be
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2.lib.gson.stream;
|
||||
package com.massivecraft.mcore3.lib.gson.stream;
|
||||
|
||||
/**
|
||||
* A pool of string instances. Unlike the {@link String#intern() VM's
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.persist;
|
||||
package com.massivecraft.mcore3.persist;
|
||||
|
||||
/**
|
||||
* Usage of this class is highly optional. You may persist anything. If you are
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2.persist;
|
||||
package com.massivecraft.mcore3.persist;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Map;
|
||||
|
||||
import com.massivecraft.mcore2.Predictate;
|
||||
import com.massivecraft.mcore3.Predictate;
|
||||
|
||||
public interface IClassManager<T>
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
package com.massivecraft.mcore2.persist;
|
||||
package com.massivecraft.mcore3.persist;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.util.DiscUtil;
|
||||
import com.massivecraft.mcore3.MPlugin;
|
||||
import com.massivecraft.mcore3.util.DiscUtil;
|
||||
|
||||
// TODO: Give better name and place to differenciate from the entity-orm-ish system in "com.massivecraft.core.persist".
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.persist;
|
||||
package com.massivecraft.mcore3.persist;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
@ -18,7 +18,7 @@ import java.util.SortedSet;
|
||||
import java.util.Timer;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import com.massivecraft.mcore2.Predictate;
|
||||
import com.massivecraft.mcore3.Predictate;
|
||||
|
||||
public class Persist
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2.persist;
|
||||
package com.massivecraft.mcore3.persist;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
@ -6,7 +6,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
import com.massivecraft.mcore3.util.Txt;
|
||||
|
||||
|
||||
public abstract class PlayerEntity<T extends PlayerEntity<T>> extends Entity<T>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user