This would be MCore4 v1.0.0

This commit is contained in:
Olof Larsson 2012-08-14 17:45:50 +02:00
parent f59d4a9f22
commit d546ed5938
260 changed files with 997 additions and 997 deletions

View File

@ -1,4 +1,4 @@
name: mcore3
version: 1.0.2
name: mcore4
version: 1.0.0
main: com.massivecraft.mcore3.MCore
load: startup

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3;
package com.massivecraft.mcore4;
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.mcore3.persist.IClassManager;
import com.massivecraft.mcore3.persist.Persist;
import com.massivecraft.mcore3.util.PlayerUtil;
import com.massivecraft.mcore4.persist.IClassManager;
import com.massivecraft.mcore4.persist.Persist;
import com.massivecraft.mcore4.util.PlayerUtil;
public class InternalListener implements Listener
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3;
package com.massivecraft.mcore4;
public class Lang
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3;
package com.massivecraft.mcore4;
import java.lang.reflect.Modifier;
import java.util.HashMap;
@ -11,17 +11,17 @@ import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;
import com.massivecraft.mcore3.cmd.Cmd;
import com.massivecraft.mcore3.gson.InventoryTypeAdapter;
import com.massivecraft.mcore3.gson.ItemStackAdapter;
import com.massivecraft.mcore3.gson.MongoURIAdapter;
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
import com.massivecraft.mcore3.lib.mongodb.MongoURI;
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;
import com.massivecraft.mcore4.cmd.Cmd;
import com.massivecraft.mcore4.gson.InventoryTypeAdapter;
import com.massivecraft.mcore4.gson.ItemStackAdapter;
import com.massivecraft.mcore4.gson.MongoURIAdapter;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.mongodb.MongoURI;
import com.massivecraft.mcore4.persist.One;
import com.massivecraft.mcore4.persist.Persist;
import com.massivecraft.mcore4.util.LibLoader;
import com.massivecraft.mcore4.util.PlayerUtil;
import com.massivecraft.mcore4.util.Txt;
public class MCore extends JavaPlugin
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3;
package com.massivecraft.mcore4;
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.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;
import com.massivecraft.mcore4.cmd.Cmd;
import com.massivecraft.mcore4.lib.gson.Gson;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.persist.One;
import com.massivecraft.mcore4.persist.Persist;
import com.massivecraft.mcore4.util.LibLoader;
import com.massivecraft.mcore4.util.Txt;
public abstract class MPlugin extends JavaPlugin implements Listener
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3;
package com.massivecraft.mcore4;
public interface Predictate<T>
{

View File

@ -1,9 +1,9 @@
package com.massivecraft.mcore3.cmd;
package com.massivecraft.mcore4.cmd;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.util.Txt;
import com.massivecraft.mcore4.util.Txt;
public class BukkitGlueCommand extends Command
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd;
package com.massivecraft.mcore4.cmd;
import java.lang.reflect.Field;
import java.util.Date;
@ -13,16 +13,16 @@ import org.bukkit.command.SimpleCommandMap;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Player;
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;
import com.massivecraft.mcore4.cmd.arg.AHBoolean;
import com.massivecraft.mcore4.cmd.arg.AHByte;
import com.massivecraft.mcore4.cmd.arg.AHDate;
import com.massivecraft.mcore4.cmd.arg.AHDouble;
import com.massivecraft.mcore4.cmd.arg.AHFloat;
import com.massivecraft.mcore4.cmd.arg.AHInteger;
import com.massivecraft.mcore4.cmd.arg.AHMaterial;
import com.massivecraft.mcore4.cmd.arg.AHPlayer;
import com.massivecraft.mcore4.cmd.arg.AHWorld;
import com.massivecraft.mcore4.cmd.arg.IArgHandler;
public class Cmd
{

View File

@ -1,10 +1,10 @@
package com.massivecraft.mcore3.cmd;
package com.massivecraft.mcore4.cmd;
import java.util.ArrayList;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore3.cmd.MCommand;
import com.massivecraft.mcore3.util.Txt;
import com.massivecraft.mcore4.MPlugin;
import com.massivecraft.mcore4.cmd.MCommand;
import com.massivecraft.mcore4.util.Txt;
public class HelpCommand extends MCommand
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd;
package com.massivecraft.mcore4.cmd;
import java.util.*;
import java.util.Map.Entry;
@ -9,14 +9,14 @@ import org.bukkit.command.CommandSender;
import org.bukkit.command.SimpleCommandMap;
import org.bukkit.entity.Player;
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;
import com.massivecraft.mcore4.Lang;
import com.massivecraft.mcore4.MCore;
import com.massivecraft.mcore4.MPlugin;
import com.massivecraft.mcore4.cmd.arg.IArgHandler;
import com.massivecraft.mcore4.cmd.req.IReq;
import com.massivecraft.mcore4.cmd.req.ReqHasPerm;
import com.massivecraft.mcore4.util.Perm;
import com.massivecraft.mcore4.util.Txt;
public abstract class MCommand
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd;
package com.massivecraft.mcore4.cmd;
public enum VisibilityMode
{

View File

@ -1,11 +1,11 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import java.util.ArrayList;
import java.util.Collection;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public abstract class AHBase<T> implements IArgHandler<T>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
public class AHBoolean extends AHPrimitive<Boolean>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
public class AHByte extends AHPrimitive<Byte>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
public class AHDouble extends AHPrimitive<Double>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
public class AHFloat extends AHPrimitive<Float>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
public class AHInteger extends AHPrimitive<Integer>
{

View File

@ -1,9 +1,9 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public class AHMaterial extends AHBase<Material>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.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.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public class AHPlayer extends AHBase<Player>
{

View File

@ -1,11 +1,11 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore3.persist.IClassManager;
import com.massivecraft.mcore3.persist.Persist;
import com.massivecraft.mcore3.util.PlayerUtil;
import com.massivecraft.mcore4.MPlugin;
import com.massivecraft.mcore4.persist.IClassManager;
import com.massivecraft.mcore4.persist.Persist;
import com.massivecraft.mcore4.util.PlayerUtil;
public abstract class AHPlayerWrapper<T> extends AHBase<T>
{

View File

@ -1,8 +1,8 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public abstract class AHPrimitive<T> extends AHBase<T>
{

View File

@ -1,10 +1,10 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public class AHWorld extends AHBase<World>
{

View File

@ -1,10 +1,10 @@
package com.massivecraft.mcore3.cmd.arg;
package com.massivecraft.mcore4.cmd.arg;
import java.util.Collection;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.MPlugin;
import com.massivecraft.mcore4.MPlugin;
public interface IArgHandler<T>
{

View File

@ -1,8 +1,8 @@
package com.massivecraft.mcore3.cmd.req;
package com.massivecraft.mcore4.cmd.req;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.cmd.MCommand;
import com.massivecraft.mcore4.cmd.MCommand;
public interface IReq
{

View File

@ -1,9 +1,9 @@
package com.massivecraft.mcore3.cmd.req;
package com.massivecraft.mcore4.cmd.req;
import org.bukkit.command.CommandSender;
import com.massivecraft.mcore3.cmd.MCommand;
import com.massivecraft.mcore3.util.Perm;
import com.massivecraft.mcore4.cmd.MCommand;
import com.massivecraft.mcore4.util.Perm;
public class ReqHasPerm implements IReq
{

View File

@ -1,10 +1,10 @@
package com.massivecraft.mcore3.cmd.req;
package com.massivecraft.mcore4.cmd.req;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.massivecraft.mcore3.Lang;
import com.massivecraft.mcore3.cmd.MCommand;
import com.massivecraft.mcore4.Lang;
import com.massivecraft.mcore4.cmd.MCommand;
public class ReqIsPlayer implements IReq
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.gson;
package com.massivecraft.mcore4.gson;
import java.lang.reflect.Type;
@ -6,14 +6,14 @@ import org.bukkit.craftbukkit.inventory.CraftInventoryCustom;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
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;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonObject;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.JsonSerializationContext;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
public class InventoryTypeAdapter implements JsonDeserializer<Inventory>, JsonSerializer<Inventory>
{

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.gson;
package com.massivecraft.mcore4.gson;
import java.lang.reflect.Type;
import java.util.Map.Entry;
@ -6,13 +6,13 @@ import java.util.Map.Entry;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
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.JsonSerializationContext;
import com.massivecraft.mcore3.lib.gson.JsonSerializer;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonObject;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonSerializationContext;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
public class ItemStackAdapter implements JsonDeserializer<ItemStack>, JsonSerializer<ItemStack>
{

View File

@ -1,15 +1,15 @@
package com.massivecraft.mcore3.gson;
package com.massivecraft.mcore4.gson;
import java.lang.reflect.Type;
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.mongodb.MongoURI;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.JsonSerializationContext;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
import com.massivecraft.mcore4.lib.mongodb.MongoURI;
public class MongoURIAdapter implements JsonDeserializer<MongoURI>, JsonSerializer<MongoURI>
{

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.nio.charset.Charset;
import java.util.HashMap;
@ -26,7 +26,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import com.massivecraft.mcore3.lib.bson.util.ClassMap;
import com.massivecraft.mcore4.lib.bson.util.ClassMap;
public class BSON {

View File

@ -16,9 +16,9 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
public interface BSONCallback {

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.io.IOException;
import java.io.InputStream;

View File

@ -11,9 +11,9 @@
* specific language governing permissions and limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.*;
import com.massivecraft.mcore4.lib.bson.io.*;
public interface BSONEncoder {

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
/**
* A general runtime exception raised in BSON processing.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
/**
*

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.util.Map;
import java.util.Set;

View File

@ -16,12 +16,12 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.util.*;
import java.util.regex.Pattern;
import com.massivecraft.mcore3.lib.bson.types.*;
import com.massivecraft.mcore4.lib.bson.types.*;
public class BasicBSONCallback implements BSONCallback {

View File

@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import static com.massivecraft.mcore3.lib.bson.BSON.*;
import static com.massivecraft.mcore4.lib.bson.BSON.*;
import java.io.*;
import com.massivecraft.mcore3.lib.bson.io.PoolOutputBuffer;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.io.PoolOutputBuffer;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
/**
@ -337,17 +337,17 @@ public class BasicBSONDecoder implements BSONDecoder {
public int readInt()
throws IOException {
return com.massivecraft.mcore3.lib.bson.io.Bits.readInt( _inputBuffer , _need(4) );
return com.massivecraft.mcore4.lib.bson.io.Bits.readInt( _inputBuffer , _need(4) );
}
public int readIntBE()
throws IOException {
return com.massivecraft.mcore3.lib.bson.io.Bits.readIntBE( _inputBuffer , _need(4) );
return com.massivecraft.mcore4.lib.bson.io.Bits.readIntBE( _inputBuffer , _need(4) );
}
public long readLong()
throws IOException {
return com.massivecraft.mcore3.lib.bson.io.Bits.readLong( _inputBuffer , _need(8) );
return com.massivecraft.mcore4.lib.bson.io.Bits.readLong( _inputBuffer , _need(8) );
}
public double readDouble()

View File

@ -16,32 +16,32 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import static com.massivecraft.mcore3.lib.bson.BSON.ARRAY;
import static com.massivecraft.mcore3.lib.bson.BSON.BINARY;
import static com.massivecraft.mcore3.lib.bson.BSON.BOOLEAN;
import static com.massivecraft.mcore3.lib.bson.BSON.B_BINARY;
import static com.massivecraft.mcore3.lib.bson.BSON.B_GENERAL;
import static com.massivecraft.mcore3.lib.bson.BSON.B_UUID;
import static com.massivecraft.mcore3.lib.bson.BSON.CODE;
import static com.massivecraft.mcore3.lib.bson.BSON.CODE_W_SCOPE;
import static com.massivecraft.mcore3.lib.bson.BSON.DATE;
import static com.massivecraft.mcore3.lib.bson.BSON.EOO;
import static com.massivecraft.mcore3.lib.bson.BSON.MAXKEY;
import static com.massivecraft.mcore3.lib.bson.BSON.MINKEY;
import static com.massivecraft.mcore3.lib.bson.BSON.NULL;
import static com.massivecraft.mcore3.lib.bson.BSON.NUMBER;
import static com.massivecraft.mcore3.lib.bson.BSON.NUMBER_INT;
import static com.massivecraft.mcore3.lib.bson.BSON.NUMBER_LONG;
import static com.massivecraft.mcore3.lib.bson.BSON.OBJECT;
import static com.massivecraft.mcore3.lib.bson.BSON.OID;
import static com.massivecraft.mcore3.lib.bson.BSON.REGEX;
import static com.massivecraft.mcore3.lib.bson.BSON.STRING;
import static com.massivecraft.mcore3.lib.bson.BSON.SYMBOL;
import static com.massivecraft.mcore3.lib.bson.BSON.TIMESTAMP;
import static com.massivecraft.mcore3.lib.bson.BSON.UNDEFINED;
import static com.massivecraft.mcore3.lib.bson.BSON.regexFlags;
import static com.massivecraft.mcore4.lib.bson.BSON.ARRAY;
import static com.massivecraft.mcore4.lib.bson.BSON.BINARY;
import static com.massivecraft.mcore4.lib.bson.BSON.BOOLEAN;
import static com.massivecraft.mcore4.lib.bson.BSON.B_BINARY;
import static com.massivecraft.mcore4.lib.bson.BSON.B_GENERAL;
import static com.massivecraft.mcore4.lib.bson.BSON.B_UUID;
import static com.massivecraft.mcore4.lib.bson.BSON.CODE;
import static com.massivecraft.mcore4.lib.bson.BSON.CODE_W_SCOPE;
import static com.massivecraft.mcore4.lib.bson.BSON.DATE;
import static com.massivecraft.mcore4.lib.bson.BSON.EOO;
import static com.massivecraft.mcore4.lib.bson.BSON.MAXKEY;
import static com.massivecraft.mcore4.lib.bson.BSON.MINKEY;
import static com.massivecraft.mcore4.lib.bson.BSON.NULL;
import static com.massivecraft.mcore4.lib.bson.BSON.NUMBER;
import static com.massivecraft.mcore4.lib.bson.BSON.NUMBER_INT;
import static com.massivecraft.mcore4.lib.bson.BSON.NUMBER_LONG;
import static com.massivecraft.mcore4.lib.bson.BSON.OBJECT;
import static com.massivecraft.mcore4.lib.bson.BSON.OID;
import static com.massivecraft.mcore4.lib.bson.BSON.REGEX;
import static com.massivecraft.mcore4.lib.bson.BSON.STRING;
import static com.massivecraft.mcore4.lib.bson.BSON.SYMBOL;
import static com.massivecraft.mcore4.lib.bson.BSON.TIMESTAMP;
import static com.massivecraft.mcore4.lib.bson.BSON.UNDEFINED;
import static com.massivecraft.mcore4.lib.bson.BSON.regexFlags;
import java.lang.reflect.Array;
import java.nio.Buffer;
@ -56,17 +56,17 @@ import java.util.concurrent.atomic.AtomicLong;
import java.util.regex.Pattern;
import com.massivecraft.mcore3.lib.bson.io.BasicOutputBuffer;
import com.massivecraft.mcore3.lib.bson.io.OutputBuffer;
import com.massivecraft.mcore3.lib.bson.types.BSONTimestamp;
import com.massivecraft.mcore3.lib.bson.types.Binary;
import com.massivecraft.mcore3.lib.bson.types.Code;
import com.massivecraft.mcore3.lib.bson.types.CodeWScope;
import com.massivecraft.mcore3.lib.bson.types.MaxKey;
import com.massivecraft.mcore3.lib.bson.types.MinKey;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore3.lib.bson.types.Symbol;
import com.massivecraft.mcore3.lib.mongodb.DBRefBase;
import com.massivecraft.mcore4.lib.bson.io.BasicOutputBuffer;
import com.massivecraft.mcore4.lib.bson.io.OutputBuffer;
import com.massivecraft.mcore4.lib.bson.types.BSONTimestamp;
import com.massivecraft.mcore4.lib.bson.types.Binary;
import com.massivecraft.mcore4.lib.bson.types.Code;
import com.massivecraft.mcore4.lib.bson.types.CodeWScope;
import com.massivecraft.mcore4.lib.bson.types.MaxKey;
import com.massivecraft.mcore4.lib.bson.types.MinKey;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.types.Symbol;
import com.massivecraft.mcore4.lib.mongodb.DBRefBase;
/**
* this is meant to be pooled or cached
@ -401,7 +401,7 @@ public class BasicBSONEncoder implements BSONEncoder {
int before = _buf.getPosition();
_buf.write( data );
int after = _buf.getPosition();
com.massivecraft.mcore3.lib.mongodb.util.MyAsserts.assertEquals( after - before , data.length );
com.massivecraft.mcore4.lib.mongodb.util.MyAsserts.assertEquals( after - before , data.length );
}
protected void putUUID( String name , UUID val ){

View File

@ -16,10 +16,10 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
// BSON
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
// Java
import java.util.Map;
@ -310,7 +310,7 @@ public class BasicBSONObject extends LinkedHashMap<String,Object> implements BSO
* @return JSON serialization
*/
public String toString(){
return com.massivecraft.mcore3.lib.mongodb.util.JSON.serialize( this );
return com.massivecraft.mcore4.lib.mongodb.util.JSON.serialize( this );
}
public boolean equals( Object o ){

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
public class EmptyBSONCallback implements BSONCallback {

View File

@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.util.HashMap;
import com.massivecraft.mcore3.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore4.lib.bson.io.BSONByteBuffer;
/**
* @author brendan

View File

@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import java.util.List;
import java.util.logging.Logger;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore3.lib.mongodb.LazyDBObject;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.mongodb.LazyDBObject;
/**

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.Bits;
import com.massivecraft.mcore4.lib.bson.io.Bits;
import java.io.ByteArrayInputStream;
import java.io.IOException;

View File

@ -1,6 +1,6 @@
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore4.lib.bson.io.BSONByteBuffer;
import java.util.*;

View File

@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore3.lib.bson.types.*;
import com.massivecraft.mcore4.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore4.lib.bson.types.*;
import java.io.IOException;
import java.io.OutputStream;
@ -670,7 +670,7 @@ public class LazyBSONObject implements BSONObject {
* @return JSON serialization
*/
public String toString(){
return com.massivecraft.mcore3.lib.mongodb.util.JSON.serialize( this );
return com.massivecraft.mcore4.lib.mongodb.util.JSON.serialize( this );
}
/**

View File

@ -1,12 +1,12 @@
/**
*
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore3.lib.mongodb.DBObject;
import com.massivecraft.mcore3.lib.mongodb.util.JSON;
import com.massivecraft.mcore4.lib.bson.io.BSONByteBuffer;
import com.massivecraft.mcore4.lib.mongodb.DBObject;
import com.massivecraft.mcore4.lib.mongodb.util.JSON;
/**
* @author scotthernandez

View File

@ -14,12 +14,12 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
import com.massivecraft.mcore3.lib.bson.io.Bits;
import com.massivecraft.mcore3.lib.bson.types.ObjectId;
import com.massivecraft.mcore4.lib.bson.io.Bits;
import com.massivecraft.mcore4.lib.bson.types.ObjectId;
import static com.massivecraft.mcore3.lib.bson.BSON.*;
import static com.massivecraft.mcore4.lib.bson.BSON.*;
// Java
import java.io.IOException;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson;
package com.massivecraft.mcore4.lib.bson;
public interface Transformer {

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import com.massivecraft.mcore3.lib.bson.*;
import com.massivecraft.mcore4.lib.bson.*;
import java.io.*;
import java.nio.*;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import java.io.*;

View File

@ -17,7 +17,7 @@
*/
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import java.io.*;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import java.io.*;
import java.security.*;
@ -114,7 +114,7 @@ public abstract class OutputBuffer extends OutputStream {
throw new RuntimeException( "impossible" );
}
return com.massivecraft.mcore3.lib.mongodb.util.Util.toHex( md5.digest() );
return com.massivecraft.mcore4.lib.mongodb.util.Util.toHex( md5.digest() );
}
public void writeInt( int x ){

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import java.io.*;
@ -228,8 +228,8 @@ public class PoolOutputBuffer extends OutputBuffer {
private final Position _cur = new Position();
private final Position _end = new Position();
private static com.massivecraft.mcore3.lib.bson.util.SimplePool<byte[]> _extra =
new com.massivecraft.mcore3.lib.bson.util.SimplePool<byte[]>( ( 1024 * 1024 * 10 ) / BUF_SIZE ){
private static com.massivecraft.mcore4.lib.bson.util.SimplePool<byte[]> _extra =
new com.massivecraft.mcore4.lib.bson.util.SimplePool<byte[]>( ( 1024 * 1024 * 10 ) / BUF_SIZE ){
protected byte[] createNew(){
return new byte[BUF_SIZE];

View File

@ -46,7 +46,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
//package org.postgresql.core;
package com.massivecraft.mcore3.lib.bson.io;
package com.massivecraft.mcore4.lib.bson.io;
import java.io.IOException;
import java.text.MessageFormat;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.io.Serializable;
import java.util.Date;

View File

@ -16,10 +16,10 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import com.massivecraft.mcore3.lib.bson.*;
import com.massivecraft.mcore3.lib.bson.util.StringRangeSet;
import com.massivecraft.mcore4.lib.bson.*;
import com.massivecraft.mcore4.lib.bson.util.StringRangeSet;
import java.util.*;

View File

@ -19,9 +19,9 @@
* under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import com.massivecraft.mcore3.lib.bson.BSON;
import com.massivecraft.mcore4.lib.bson.BSON;
import java.io.Serializable;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.io.Serializable;

View File

@ -16,9 +16,9 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import com.massivecraft.mcore3.lib.bson.*;
import com.massivecraft.mcore4.lib.bson.*;
/**
* for using the CodeWScope type

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.io.Serializable;

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.io.Serializable;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.net.*;
import java.nio.*;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.types;
package com.massivecraft.mcore4.lib.bson.types;
import java.io.Serializable;

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import static com.massivecraft.mcore3.lib.bson.util.Assertions.notNull;
import static com.massivecraft.mcore4.lib.bson.util.Assertions.notNull;
import static java.util.Collections.unmodifiableCollection;
import static java.util.Collections.unmodifiableSet;
import com.massivecraft.mcore3.lib.bson.util.annotations.GuardedBy;
import com.massivecraft.mcore3.lib.bson.util.annotations.ThreadSafe;
import com.massivecraft.mcore4.lib.bson.util.annotations.GuardedBy;
import com.massivecraft.mcore4.lib.bson.util.annotations.ThreadSafe;
import java.io.Serializable;
import java.util.Collection;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
/**
* Design by contract assertions.

View File

@ -1,6 +1,6 @@
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import static com.massivecraft.mcore3.lib.bson.util.CopyOnWriteMap.newHashMap;
import static com.massivecraft.mcore4.lib.bson.util.CopyOnWriteMap.newHashMap;
import static java.util.Collections.unmodifiableList;
import java.util.ArrayList;

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import java.util.List;
import java.util.Map;

View File

@ -1,6 +1,6 @@
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import static com.massivecraft.mcore3.lib.bson.util.Assertions.notNull;
import static com.massivecraft.mcore4.lib.bson.util.Assertions.notNull;
import java.util.Collection;
import java.util.Map;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import java.util.Collections;
import java.util.HashMap;
@ -24,9 +24,9 @@ import java.util.TreeMap;
import java.util.WeakHashMap;
import com.massivecraft.mcore3.lib.bson.util.AbstractCopyOnWriteMap.View.Type;
import com.massivecraft.mcore3.lib.bson.util.annotations.GuardedBy;
import com.massivecraft.mcore3.lib.bson.util.annotations.ThreadSafe;
import com.massivecraft.mcore4.lib.bson.util.AbstractCopyOnWriteMap.View.Type;
import com.massivecraft.mcore4.lib.bson.util.annotations.GuardedBy;
import com.massivecraft.mcore4.lib.bson.util.annotations.ThreadSafe;
/**
* A thread-safe variant of {@link Map} in which all mutative operations (the

View File

@ -1,4 +1,4 @@
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
interface Function<A, B> {
B apply(A a);

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import java.util.*;
import java.util.concurrent.*;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.bson.util;
package com.massivecraft.mcore4.lib.bson.util;
import java.util.Collection;
import java.util.Iterator;

View File

@ -8,7 +8,7 @@
* must include this copyright and license notice.
*/
package com.massivecraft.mcore3.lib.bson.util.annotations;
package com.massivecraft.mcore4.lib.bson.util.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@ -8,7 +8,7 @@
* must include this copyright and license notice.
*/
package com.massivecraft.mcore3.lib.bson.util.annotations;
package com.massivecraft.mcore4.lib.bson.util.annotations;
import java.lang.annotation.*;

View File

@ -8,7 +8,7 @@
* must include this copyright and license notice.
*/
package com.massivecraft.mcore3.lib.bson.util.annotations;
package com.massivecraft.mcore4.lib.bson.util.annotations;
import java.lang.annotation.*;

View File

@ -8,7 +8,7 @@
* must include this copyright and license notice.
*/
package com.massivecraft.mcore3.lib.bson.util.annotations;
package com.massivecraft.mcore4.lib.bson.util.annotations;
import java.lang.annotation.*;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.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.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;
import com.massivecraft.mcore4.lib.gson.DefaultDateTypeAdapter;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.JsonSerializationContext;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
import com.massivecraft.mcore4.lib.gson.JsonSyntaxException;
/**
* This type adapter supports three subclasses of date: Date, Timestamp, and

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import com.massivecraft.mcore3.lib.gson.ExclusionStrategy;
import com.massivecraft.mcore3.lib.gson.FieldAttributes;
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.gson.ExclusionStrategy;
import com.massivecraft.mcore4.lib.gson.FieldAttributes;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
/**
* A strategy (or policy) definition that is used to decide whether or not a field or top-level

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import com.massivecraft.mcore3.lib.gson.internal.$Gson$Preconditions;
import com.massivecraft.mcore4.lib.gson.internal.$Gson$Preconditions;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

View File

@ -14,16 +14,16 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import java.lang.reflect.Field;
import com.massivecraft.mcore3.lib.gson.FieldNamingStrategy;
import com.massivecraft.mcore4.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.mcore3.lib.gson.GsonBuilder}
* to configure a {@link com.massivecraft.mcore3.lib.gson.Gson} instance to properly translate Java field
* This enumeration should be used in conjunction with {@link com.massivecraft.mcore4.lib.gson.GsonBuilder}
* to configure a {@link com.massivecraft.mcore4.lib.gson.Gson} instance to properly translate Java field
* names into the desired JSON field names.
*
* @author Inderjeet Singh

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import java.lang.reflect.Field;

View File

@ -14,48 +14,48 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
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 com.massivecraft.mcore4.lib.gson.FieldNamingPolicy;
import com.massivecraft.mcore4.lib.gson.FieldNamingStrategy;
import com.massivecraft.mcore4.lib.gson.Gson;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.gson.InstanceCreator;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonIOException;
import com.massivecraft.mcore4.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonSerializationContext;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
import com.massivecraft.mcore4.lib.gson.JsonSyntaxException;
import com.massivecraft.mcore4.lib.gson.LongSerializationPolicy;
import com.massivecraft.mcore4.lib.gson.TypeAdapter;
import com.massivecraft.mcore4.lib.gson.TypeAdapterFactory;
import com.massivecraft.mcore4.lib.gson.internal.ConstructorConstructor;
import com.massivecraft.mcore4.lib.gson.internal.Excluder;
import com.massivecraft.mcore4.lib.gson.internal.GsonInternalAccess;
import com.massivecraft.mcore4.lib.gson.internal.Primitives;
import com.massivecraft.mcore4.lib.gson.internal.Streams;
import com.massivecraft.mcore4.lib.gson.internal.bind.ArrayTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.BigDecimalTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.BigIntegerTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.CollectionTypeAdapterFactory;
import com.massivecraft.mcore4.lib.gson.internal.bind.DateTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.JsonTreeReader;
import com.massivecraft.mcore4.lib.gson.internal.bind.JsonTreeWriter;
import com.massivecraft.mcore4.lib.gson.internal.bind.MapTypeAdapterFactory;
import com.massivecraft.mcore4.lib.gson.internal.bind.ObjectTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.ReflectiveTypeAdapterFactory;
import com.massivecraft.mcore4.lib.gson.internal.bind.SqlDateTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.TimeTypeAdapter;
import com.massivecraft.mcore4.lib.gson.internal.bind.TypeAdapters;
import com.massivecraft.mcore4.lib.gson.reflect.TypeToken;
import com.massivecraft.mcore4.lib.gson.stream.JsonReader;
import com.massivecraft.mcore4.lib.gson.stream.JsonToken;
import com.massivecraft.mcore4.lib.gson.stream.JsonWriter;
import com.massivecraft.mcore4.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.mcore3.lib.gson.reflect.TypeToken
* @see com.massivecraft.mcore4.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.mcore3.lib.gson.annotations.Expose} annotation.
* <li>By default, Gson ignores the {@link com.massivecraft.mcore4.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.mcore3.lib.gson.annotations.Since} annotation. You
* <li>By default, Gson ignores the {@link com.massivecraft.mcore4.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>&quot;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.mcore3.lib.gson.reflect.TypeToken} class. For example,
* this type by using the {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example,
* to get the type for {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfSrc = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.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.mcore3.lib.gson.reflect.TypeToken} class. For example,
* this type by using the {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example,
* to get the type for {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfSrc = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.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.mcore3.lib.gson.reflect.TypeToken} class. For example,
* this type by using the {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example,
* to get the type for {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfSrc = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.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.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfT = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.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.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfT = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.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.mcore3.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@link com.massivecraft.mcore4.lib.gson.reflect.TypeToken} class. For example, to get the type for
* {@code Collection<Foo>}, you should use:
* <pre>
* Type typeOfT = new TypeToken&lt;Collection&lt;Foo&gt;&gt;(){}.getType();

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.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.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;
import com.massivecraft.mcore4.lib.gson.DefaultDateTypeAdapter;
import com.massivecraft.mcore4.lib.gson.ExclusionStrategy;
import com.massivecraft.mcore4.lib.gson.FieldNamingPolicy;
import com.massivecraft.mcore4.lib.gson.FieldNamingStrategy;
import com.massivecraft.mcore4.lib.gson.Gson;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.gson.InstanceCreator;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonObject;
import com.massivecraft.mcore4.lib.gson.JsonSerializer;
import com.massivecraft.mcore4.lib.gson.LongSerializationPolicy;
import com.massivecraft.mcore4.lib.gson.TreeTypeAdapter;
import com.massivecraft.mcore4.lib.gson.TypeAdapter;
import com.massivecraft.mcore4.lib.gson.TypeAdapterFactory;
import com.massivecraft.mcore4.lib.gson.internal.$Gson$Preconditions;
import com.massivecraft.mcore4.lib.gson.internal.Excluder;
import com.massivecraft.mcore4.lib.gson.internal.Primitives;
import com.massivecraft.mcore4.lib.gson.internal.bind.TypeAdapters;
import com.massivecraft.mcore4.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.mcore3.lib.gson.annotations.Expose} annotation.
* that do not have the {@link com.massivecraft.mcore4.lib.gson.annotations.Expose} annotation.
*
* @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern
*/

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import java.lang.reflect.Type;
import com.massivecraft.mcore3.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
/**
* This interface is implemented to create instances of a class that does not define a no-args

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.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.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;
import com.massivecraft.mcore4.lib.gson.JsonArray;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
/**
* A class representing an array type in Json. An array is a list of {@link JsonElement}s each of

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import java.lang.reflect.Type;
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.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonDeserializer;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
/**
* Context for deserialization that is passed to a custom deserializer during invocation of its

View File

@ -14,15 +14,15 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import java.lang.reflect.Type;
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;
import com.massivecraft.mcore4.lib.gson.GsonBuilder;
import com.massivecraft.mcore4.lib.gson.JsonDeserializationContext;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.TypeAdapter;
/**
* <p>Interface representing a custom deserializer for Json. You should write a custom

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
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 com.massivecraft.mcore4.lib.gson.JsonArray;
import com.massivecraft.mcore4.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonObject;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.internal.Streams;
import com.massivecraft.mcore4.lib.gson.stream.JsonWriter;
import java.io.IOException;
import java.io.StringWriter;

View File

@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import com.massivecraft.mcore3.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
/**
* This exception is raised when Gson was unable to read an input stream

View File

@ -14,10 +14,10 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import com.massivecraft.mcore3.lib.gson.JsonElement;
import com.massivecraft.mcore3.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonNull;
/**
* A class representing a Json {@code null} value.

View File

@ -14,14 +14,14 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
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 com.massivecraft.mcore4.lib.gson.JsonArray;
import com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonObject;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.internal.$Gson$Preconditions;
import java.util.LinkedHashMap;
import java.util.Map;

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
import com.massivecraft.mcore3.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
/**
* This exception is raised if there is a serious issue that occurs during parsing of a Json

View File

@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
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 com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonIOException;
import com.massivecraft.mcore4.lib.gson.JsonNull;
import com.massivecraft.mcore4.lib.gson.JsonParseException;
import com.massivecraft.mcore4.lib.gson.JsonSyntaxException;
import com.massivecraft.mcore4.lib.gson.internal.Streams;
import com.massivecraft.mcore4.lib.gson.stream.JsonReader;
import com.massivecraft.mcore4.lib.gson.stream.JsonToken;
import com.massivecraft.mcore4.lib.gson.stream.MalformedJsonException;
import java.io.EOFException;
import java.io.IOException;

View File

@ -14,12 +14,12 @@
* limitations under the License.
*/
package com.massivecraft.mcore3.lib.gson;
package com.massivecraft.mcore4.lib.gson;
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 com.massivecraft.mcore4.lib.gson.JsonElement;
import com.massivecraft.mcore4.lib.gson.JsonPrimitive;
import com.massivecraft.mcore4.lib.gson.internal.$Gson$Preconditions;
import com.massivecraft.mcore4.lib.gson.internal.LazilyParsedNumber;
import java.math.BigDecimal;
import java.math.BigInteger;

Some files were not shown because too many files have changed in this diff Show More