Mercurial > hg > Database > Alice
changeset 541:ba9e8b32220d dispose
remove static on AliceDeamon
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 03 Aug 2015 18:40:41 +0900 |
parents | 97bd6efa6e69 |
children | bd245df5cba3 |
files | src/main/java/alice/daemon/AliceDaemon.java |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/daemon/AliceDaemon.java Mon Aug 03 18:39:37 2015 +0900 +++ b/src/main/java/alice/daemon/AliceDaemon.java Mon Aug 03 18:40:41 2015 +0900 @@ -24,11 +24,11 @@ private Logger log = Logger.getLogger(AliceDaemon.class); // static - public static final MessagePack packer = new MessagePack(); - public static DataSegment dataSegment = new DataSegment(); - public static HashMap<Integer, CommandType> hash = new HashMap<Integer, CommandType>();//コマンド対応表 - public static int lastId = 0;//コマンドの総数 - public static CodeSegmentManager codeSegmentManager = new CodeSegmentManager(); + public final MessagePack packer = new MessagePack(); + public DataSegment dataSegment = new DataSegment(); + public HashMap<Integer, CommandType> hash = new HashMap<Integer, CommandType>();//コマンド対応表 + public int lastId = 0;//コマンドの総数 + public CodeSegmentManager codeSegmentManager = new CodeSegmentManager(); public AliceDaemon(Config conf) { this.conf = conf; @@ -36,7 +36,7 @@ commandInit();//static } - public static CommandType getCommandTypeFromId(int id) { + public CommandType getCommandTypeFromId(int id) { return hash.get(id); }