Yuta HIGUCHI

DatabaseStateMachine: fix type mismatch

Change-Id: I267c7390e46b503d8bfb5ffcb2e09df3738ff5b0
...@@ -5,8 +5,6 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -5,8 +5,6 @@ import static org.slf4j.LoggerFactory.getLogger;
5 import java.util.ArrayList; 5 import java.util.ArrayList;
6 import java.util.List; 6 import java.util.List;
7 import java.util.Map; 7 import java.util.Map;
8 -import java.util.Set;
9 -
10 import net.kuujo.copycat.Command; 8 import net.kuujo.copycat.Command;
11 import net.kuujo.copycat.Query; 9 import net.kuujo.copycat.Query;
12 import net.kuujo.copycat.StateMachine; 10 import net.kuujo.copycat.StateMachine;
...@@ -20,6 +18,7 @@ import org.onlab.onos.store.service.WriteResult; ...@@ -20,6 +18,7 @@ import org.onlab.onos.store.service.WriteResult;
20 import org.onlab.util.KryoNamespace; 18 import org.onlab.util.KryoNamespace;
21 import org.slf4j.Logger; 19 import org.slf4j.Logger;
22 20
21 +import com.google.common.collect.ImmutableList;
23 import com.google.common.collect.Maps; 22 import com.google.common.collect.Maps;
24 23
25 /** 24 /**
...@@ -64,8 +63,8 @@ public class DatabaseStateMachine implements StateMachine { ...@@ -64,8 +63,8 @@ public class DatabaseStateMachine implements StateMachine {
64 } 63 }
65 64
66 @Query 65 @Query
67 - public Set<String> listTables() { 66 + public List<String> listTables() {
68 - return state.getTables().keySet(); 67 + return ImmutableList.copyOf(state.getTables().keySet());
69 } 68 }
70 69
71 @Query 70 @Query
......