Now mcore2
This commit is contained in:
parent
1bb56bf239
commit
85d38da19e
@ -1,4 +1,4 @@
|
||||
name: mcore2dev
|
||||
name: mcore2
|
||||
version: 1.0.0
|
||||
main: com.massivecraft.mcore2dev.MCore
|
||||
authors: [Olof Larsson, Brett Flannigan]
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev;
|
||||
package com.massivecraft.mcore2;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -9,9 +9,9 @@ import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
import org.bukkit.event.player.PlayerPreLoginEvent;
|
||||
import org.bukkit.event.server.ServerCommandEvent;
|
||||
|
||||
import com.massivecraft.mcore2dev.persist.IClassManager;
|
||||
import com.massivecraft.mcore2dev.persist.Persist;
|
||||
import com.massivecraft.mcore2dev.util.PlayerUtil;
|
||||
import com.massivecraft.mcore2.persist.IClassManager;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.PlayerUtil;
|
||||
|
||||
public class InternalListener implements Listener
|
||||
{
|
||||
@ -41,12 +41,13 @@ public class InternalListener implements Listener
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (event.isCancelled()) return;
|
||||
if (MCore.handleCommand(event.getPlayer(), event.getMessage().substring(1), false))
|
||||
{
|
||||
Bukkit.getLogger().info("[PLAYER_COMMAND] "+event.getPlayer().getName()+": "+event.getMessage());
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev;
|
||||
package com.massivecraft.mcore2;
|
||||
|
||||
public class Lang
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev;
|
||||
package com.massivecraft.mcore2;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.ArrayList;
|
||||
@ -13,13 +13,13 @@ import java.util.logging.Logger;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.massivecraft.mcore2dev.cmd.Cmd;
|
||||
import com.massivecraft.mcore2dev.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2dev.persist.One;
|
||||
import com.massivecraft.mcore2dev.persist.Persist;
|
||||
import com.massivecraft.mcore2dev.util.LibLoader;
|
||||
import com.massivecraft.mcore2dev.util.PlayerUtil;
|
||||
import com.massivecraft.mcore2dev.util.Txt;
|
||||
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;
|
||||
|
||||
public class MCore extends JavaPlugin
|
||||
{
|
@ -1,20 +1,18 @@
|
||||
package com.massivecraft.mcore2dev;
|
||||
package com.massivecraft.mcore2;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.massivecraft.mcore2dev.cmd.Cmd;
|
||||
import com.massivecraft.mcore2dev.lib.gson.Gson;
|
||||
import com.massivecraft.mcore2dev.lib.gson.GsonBuilder;
|
||||
import com.massivecraft.mcore2dev.persist.One;
|
||||
import com.massivecraft.mcore2dev.persist.Persist;
|
||||
import com.massivecraft.mcore2dev.util.LibLoader;
|
||||
import com.massivecraft.mcore2dev.util.Txt;
|
||||
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;
|
||||
|
||||
|
||||
public abstract class MPlugin extends JavaPlugin
|
||||
@ -104,16 +102,6 @@ public abstract class MPlugin extends JavaPlugin
|
||||
Bukkit.getPluginManager().disablePlugin(this);
|
||||
}
|
||||
|
||||
public void registerEvent(Event.Type type, Listener listener, Event.Priority priority)
|
||||
{
|
||||
Bukkit.getPluginManager().registerEvent(type, listener, priority, this);
|
||||
}
|
||||
|
||||
public void registerEvent(Event.Type type, Listener listener)
|
||||
{
|
||||
registerEvent(type, listener, Event.Priority.Normal);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// LOGGING
|
||||
// -------------------------------------------- //
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev;
|
||||
package com.massivecraft.mcore2;
|
||||
|
||||
public interface Predictate<T>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd;
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
@ -11,14 +11,14 @@ import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHBoolean;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHDouble;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHFloat;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHInteger;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHMaterial;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHPlayer;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.AHWorld;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.IArgHandler;
|
||||
import com.massivecraft.mcore2.cmd.arg.AHBoolean;
|
||||
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;
|
||||
|
||||
public class Cmd
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2dev.cmd;
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2dev.cmd.MCommand;
|
||||
import com.massivecraft.mcore2dev.util.Txt;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.util.Txt;
|
||||
|
||||
public class HelpCommand extends MCommand
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.Lang;
|
||||
import com.massivecraft.mcore2dev.MCore;
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2dev.cmd.arg.IArgHandler;
|
||||
import com.massivecraft.mcore2dev.cmd.req.IReq;
|
||||
import com.massivecraft.mcore2dev.cmd.req.ReqHasPerm;
|
||||
import com.massivecraft.mcore2dev.util.Perm;
|
||||
import com.massivecraft.mcore2dev.util.Txt;
|
||||
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;
|
||||
|
||||
public abstract class MCommand
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd;
|
||||
package com.massivecraft.mcore2.cmd;
|
||||
|
||||
public enum VisibilityMode
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public abstract class AHBase<T> implements IArgHandler<T>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
public class AHBoolean extends AHPrimitive<Boolean>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
public class AHDouble extends AHPrimitive<Double>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
public class AHFloat extends AHPrimitive<Float>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
public class AHInteger extends AHPrimitive<Integer>
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public class AHMaterial extends AHBase<Material>
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public class AHPlayer extends AHBase<Player>
|
||||
{
|
@ -1,11 +1,11 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2dev.persist.IClassManager;
|
||||
import com.massivecraft.mcore2dev.persist.Persist;
|
||||
import com.massivecraft.mcore2dev.util.PlayerUtil;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
import com.massivecraft.mcore2.persist.IClassManager;
|
||||
import com.massivecraft.mcore2.persist.Persist;
|
||||
import com.massivecraft.mcore2.util.PlayerUtil;
|
||||
|
||||
public abstract class AHPlayerWrapper<T> extends AHBase<T>
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public abstract class AHPrimitive<T> extends AHBase<T>
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public class AHWorld extends AHBase<World>
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2dev.cmd.arg;
|
||||
package com.massivecraft.mcore2.cmd.arg;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.MPlugin;
|
||||
import com.massivecraft.mcore2.MPlugin;
|
||||
|
||||
public interface IArgHandler<T>
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
package com.massivecraft.mcore2dev.cmd.req;
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
|
||||
public interface IReq
|
||||
{
|
@ -1,9 +1,9 @@
|
||||
package com.massivecraft.mcore2dev.cmd.req;
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.mcore2dev.cmd.MCommand;
|
||||
import com.massivecraft.mcore2dev.util.Perm;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.util.Perm;
|
||||
|
||||
public class ReqHasPerm implements IReq
|
||||
{
|
@ -1,10 +1,10 @@
|
||||
package com.massivecraft.mcore2dev.cmd.req;
|
||||
package com.massivecraft.mcore2.cmd.req;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.massivecraft.mcore2dev.Lang;
|
||||
import com.massivecraft.mcore2dev.cmd.MCommand;
|
||||
import com.massivecraft.mcore2.Lang;
|
||||
import com.massivecraft.mcore2.cmd.MCommand;
|
||||
|
||||
public class ReqIsPlayer implements IReq
|
||||
{
|
@ -1,4 +1,4 @@
|
||||
package com.massivecraft.mcore2dev.gson;
|
||||
package com.massivecraft.mcore2.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
@ -11,14 +11,14 @@ import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.getspout.spoutapi.SpoutManager;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonDeserializationContext;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonDeserializer;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSerializationContext;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSerializer;
|
||||
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;
|
||||
|
||||
public class InventoryTypeAdapter implements JsonDeserializer<Inventory>, JsonSerializer<Inventory>
|
||||
{
|
||||
@ -138,4 +138,18 @@ public class InventoryTypeAdapter implements JsonDeserializer<Inventory>, JsonSe
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// This utility is nice to have in many cases :)
|
||||
public static boolean isInventoryEmpty(Inventory inv)
|
||||
{
|
||||
if (inv == null) return true;
|
||||
for (ItemStack stack : inv.getContents())
|
||||
{
|
||||
if (stack == null) continue;
|
||||
if (stack.getAmount() == 0) continue;
|
||||
if (stack.getTypeId() == 0) continue;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* Strategy for excluding anonymous and local classes.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* Defines generic cache interface.
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.sql.Timestamp;
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.util.Collection;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* 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.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.annotations.Expose;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Expose;
|
||||
|
||||
/**
|
||||
* Excludes fields that do not have the {@link Expose} annotation
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.annotations.Expose;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Expose;
|
||||
|
||||
/**
|
||||
* Excludes fields that do not have the {@link Expose} annotation
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Pair;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Pair;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Field;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* An enumeration that defines a few standard naming conventions for JSON field names.
|
||||
* This enumeration should be used in conjunction with {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder}
|
||||
* to configure a {@link com.massivecraft.mcore2dev.lib.gson.Gson} instance to properly translate Java field
|
||||
* 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
|
||||
* names into the desired JSON field names.
|
||||
*
|
||||
* @author Inderjeet Singh
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* The new mechanism for providing custom field naming in Gson. This allows the client code
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
/**
|
||||
* Adapts the old FieldNamingStrategy to the new {@link FieldNamingStrategy2}
|
@ -14,33 +14,33 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.ArrayTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.BigDecimalTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.BigIntegerTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.CollectionTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.DateTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.ExcludedTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.JsonElementReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.JsonElementWriter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.MapTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.MiniGson;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.ObjectTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.SqlDateTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TimeTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.MalformedJsonException;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
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.ExcludedTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonElementReader;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.JsonElementWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.MapTypeAdapterFactory;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.MiniGson;
|
||||
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.TypeAdapter;
|
||||
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 java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
@ -95,7 +95,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.mcore2dev.lib.gson.reflect.TypeToken
|
||||
* @see com.massivecraft.mcore2.lib.gson.reflect.TypeToken
|
||||
*
|
||||
* @author Inderjeet Singh
|
||||
* @author Joel Leitch
|
||||
@ -158,10 +158,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.mcore2dev.lib.gson.annotations.Expose} annotation.
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore2.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.mcore2dev.lib.gson.annotations.Since} annotation. You
|
||||
* <li>By default, Gson ignores the {@link com.massivecraft.mcore2.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
|
||||
@ -392,7 +392,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.mcore2dev.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore2.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();
|
||||
@ -435,7 +435,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.mcore2dev.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore2.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();
|
||||
@ -477,7 +477,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.mcore2dev.lib.gson.reflect.TypeToken} class. For example,
|
||||
* this type by using the {@link com.massivecraft.mcore2.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();
|
||||
@ -619,7 +619,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.mcore2dev.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore2.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();
|
||||
@ -672,7 +672,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.mcore2dev.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore2.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();
|
||||
@ -769,7 +769,7 @@ public <T> T fromJson(Reader json, Type typeOfT) throws JsonIOException, JsonSyn
|
||||
* @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.mcore2dev.lib.gson.reflect.TypeToken} class. For example, to get the type for
|
||||
* {@link com.massivecraft.mcore2.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,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.DefaultTypeAdapters.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.DefaultTypeAdapters.DefaultDateTypeAdapter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Primitives;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.TypeAdapter;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.sql.Timestamp;
|
||||
@ -178,7 +178,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.mcore2dev.lib.gson.annotations.Expose} annotation.
|
||||
* that do not have the {@link com.massivecraft.mcore2.lib.gson.annotations.Expose} annotation.
|
||||
*
|
||||
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern
|
||||
*/
|
@ -13,15 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.MiniGson;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TypeAdapter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ParameterizedTypeHandlerMap;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.MiniGson;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.bind.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 java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Modifier;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2.lib.gson.stream.JsonWriter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.StringWriter;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
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.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* This exception is raised when Gson was unable to read an input stream
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* A class representing a Json {@code null} value.
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* This exception is raised if there is a serious issue that occurs during parsing of a Json
|
@ -13,12 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.MalformedJsonException;
|
||||
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 java.io.EOFException;
|
||||
import java.io.IOException;
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.LazilyParsedNumber;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.LazilyParsedNumber;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
/**
|
||||
* 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.mcore2dev.lib.gson.GsonBuilder#registerTypeAdapter(Type, Object)}.
|
||||
* this serializer through {@link com.massivecraft.mcore2.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.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
@ -22,10 +22,10 @@ import java.io.StringReader;
|
||||
import java.util.Iterator;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.MalformedJsonException;
|
||||
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;
|
||||
|
||||
/**
|
||||
* A streaming parser that allows reading of multiple {@link JsonElement}s from the specified reader
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* This exception is raised when Gson attempts to read (or write) a malformed
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* Defines the expected format for a {@code long} or {@code Long} type when its serialized.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* A {@link FieldNamingStrategy2} that ensures the JSON field names consist of only
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
|
||||
import java.util.LinkedHashMap;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.annotations.SerializedName;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.SerializedName;
|
||||
|
||||
/**
|
||||
* A {@link FieldNamingStrategy2} that acts as a chain of responsibility. If the
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.annotations.SerializedName} annotation is applied to a
|
||||
* {@link com.massivecraft.mcore2.lib.gson.annotations.SerializedName} annotation is applied to a
|
||||
* field then this strategy will translate the name to the {@code
|
||||
* serializedName.value()}; otherwise it delegates to the wrapped
|
||||
* {@link FieldNamingStrategy2}.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* A data object that stores attributes of a field.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* A {@link FieldNamingStrategy2} that ensures the JSON field names consist of mixed
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
/**
|
||||
* Class contain all constants for versioning support.
|
@ -14,11 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson;
|
||||
package com.massivecraft.mcore2.lib.gson;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.annotations.Since;
|
||||
import com.massivecraft.mcore2dev.lib.gson.annotations.Until;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Since;
|
||||
import com.massivecraft.mcore2.lib.gson.annotations.Until;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions;
|
||||
|
||||
/**
|
||||
* This strategy will exclude any files and/or class that are passed the
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.annotations;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.lib.gson.Gson}
|
||||
* with a {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder#excludeFieldsWithoutExposeAnnotation()}
|
||||
* <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()}
|
||||
* 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.mcore2dev.lib.gson.annotations;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.lib.gson.FieldNamingPolicy}, including
|
||||
* the default field naming policy, that may have been set on the {@link com.massivecraft.mcore2dev.lib.gson.Gson}
|
||||
* <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}
|
||||
* instance. A different naming policy can set using the {@code GsonBuilder} class. See
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder#setFieldNamingPolicy(com.massivecraft.mcore2dev.lib.gson.FieldNamingPolicy)}
|
||||
* {@link com.massivecraft.mcore2.lib.gson.GsonBuilder#setFieldNamingPolicy(com.massivecraft.mcore2.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.mcore2dev.lib.gson.FieldNamingPolicy
|
||||
* @see com.massivecraft.mcore2.lib.gson.FieldNamingPolicy
|
||||
*
|
||||
* @author Inderjeet Singh
|
||||
* @author Joel Leitch
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.annotations;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
* 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.
|
||||
*
|
||||
* <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.mcore2dev.lib.gson.annotations;
|
||||
package com.massivecraft.mcore2.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.mcore2dev.lib.gson.Gson} with a
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder} and invoke
|
||||
* {@link com.massivecraft.mcore2dev.lib.gson.GsonBuilder#setVersion(double)} method.
|
||||
* 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.
|
||||
*
|
||||
* <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.mcore2dev.lib.gson.Gson}.
|
||||
* This package provides annotations that can be used with {@link com.massivecraft.mcore2.lib.gson.Gson}.
|
||||
*
|
||||
* @author Inderjeet Singh, Joel Leitch
|
||||
*/
|
||||
package com.massivecraft.mcore2dev.lib.gson.annotations;
|
||||
package com.massivecraft.mcore2.lib.gson.annotations;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
/**
|
||||
* A simple utility class used to check method Preconditions.
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import static com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions.checkArgument;
|
||||
import static com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions.checkNotNull;
|
||||
import static com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions.checkArgument;
|
||||
import static com.massivecraft.mcore2.lib.gson.internal.$Gson$Preconditions.checkNotNull;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.Array;
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2.lib.gson.InstanceCreator;
|
||||
import com.massivecraft.mcore2.lib.gson.reflect.TypeToken;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
/**
|
||||
* Defines a generic object construction factory. The purpose of this class
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
/**
|
||||
* A simple object that holds onto a pair of object references, first and second.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Preconditions;
|
||||
import com.massivecraft.mcore2.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.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonIOException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonParseException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.bind.TypeAdapters;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.MalformedJsonException;
|
||||
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 java.io.EOFException;
|
||||
import java.io.IOException;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal;
|
||||
package com.massivecraft.mcore2.lib.gson.internal;
|
||||
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectStreamClass;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Array;
|
||||
@ -23,11 +23,11 @@ import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
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;
|
||||
|
||||
/**
|
||||
* Adapt an array of objects.
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
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 java.io.IOException;
|
||||
import java.math.BigDecimal;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
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 java.io.IOException;
|
||||
import java.math.BigInteger;
|
@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
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 java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
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 java.io.IOException;
|
||||
import java.text.DateFormat;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.ExclusionStrategy;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.ExclusionStrategy;
|
||||
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 java.io.IOException;
|
||||
|
@ -14,15 +14,15 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
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 java.io.IOException;
|
||||
import java.io.Reader;
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonArray;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonNull;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonObject;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
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 java.io.IOException;
|
||||
import java.io.Writer;
|
@ -14,19 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2dev.lib.gson.JsonSyntaxException;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.$Gson$Types;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ObjectConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.Streams;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonElement;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonPrimitive;
|
||||
import com.massivecraft.mcore2.lib.gson.JsonSyntaxException;
|
||||
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.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 java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.internal.ConstructorConstructor;
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
import com.massivecraft.mcore2.lib.gson.internal.ConstructorConstructor;
|
||||
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 java.io.IOException;
|
||||
import java.util.ArrayList;
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.massivecraft.mcore2dev.lib.gson.internal.bind;
|
||||
package com.massivecraft.mcore2.lib.gson.internal.bind;
|
||||
|
||||
import com.massivecraft.mcore2dev.lib.gson.reflect.TypeToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonReader;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonToken;
|
||||
import com.massivecraft.mcore2dev.lib.gson.stream.JsonWriter;
|
||||
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 java.io.IOException;
|
||||
import java.util.ArrayList;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user