# HG changeset patch # User Nozomi Teruya # Date 1438594841 -32400 # Node ID ba9e8b32220dff7c7dc5154a4cff8d8083b8bf70 # Parent 97bd6efa6e696e28e7fa971be5ddab9c66c9d3bf remove static on AliceDeamon diff -r 97bd6efa6e69 -r ba9e8b32220d src/main/java/alice/daemon/AliceDaemon.java --- 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 hash = new HashMap();//コマンド対応表 - public static int lastId = 0;//コマンドの総数 - public static CodeSegmentManager codeSegmentManager = new CodeSegmentManager(); + public final MessagePack packer = new MessagePack(); + public DataSegment dataSegment = new DataSegment(); + public HashMap hash = new HashMap();//コマンド対応表 + 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); }