From 0a1d744f0c10e3596e6f54f1c0cc7e00109d498e Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 13 May 2012 18:29:52 +0200 Subject: [PATCH] refactoring: removing references to gson --- src/org/mcteam/ancientgates/Plugin.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/org/mcteam/ancientgates/Plugin.java b/src/org/mcteam/ancientgates/Plugin.java index 3f5a13f..2e5bf06 100644 --- a/src/org/mcteam/ancientgates/Plugin.java +++ b/src/org/mcteam/ancientgates/Plugin.java @@ -1,21 +1,17 @@ package org.mcteam.ancientgates; -import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; -import org.bukkit.Location; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; import org.mcteam.ancientgates.commands.*; -import org.mcteam.ancientgates.gson.Gson; -import org.mcteam.ancientgates.gson.GsonBuilder; import org.mcteam.ancientgates.listeners.PluginBlockListener; import org.mcteam.ancientgates.listeners.PluginPlayerListener; @@ -30,12 +26,6 @@ public class Plugin extends JavaPlugin private String baseCommand; - public final static Gson gson = new GsonBuilder() - .setPrettyPrinting() - .excludeFieldsWithModifiers(Modifier.TRANSIENT, Modifier.VOLATILE) - .registerTypeAdapter(Location.class, new MyLocationTypeAdapter()) - .create(); - // Commands public List commands = new ArrayList();