diff --git a/src/main/java/org/bdware/sc/compiler/ap/Fork.java b/src/main/java/org/bdware/sc/compiler/ap/Fork.java index 970e06b..5308085 100644 --- a/src/main/java/org/bdware/sc/compiler/ap/Fork.java +++ b/src/main/java/org/bdware/sc/compiler/ap/Fork.java @@ -1,7 +1,6 @@ package org.bdware.sc.compiler.ap; import org.bdware.sc.bean.ForkInfo; -import org.bdware.sc.bean.RouteInfo; import org.bdware.sc.compiler.AnnotationProcessor; import org.bdware.sc.node.AnnotationNode; import org.bdware.sc.node.ContractNode; diff --git a/src/main/java/org/bdware/sc/server/DoipClusterServer.java b/src/main/java/org/bdware/sc/server/DoipClusterServer.java index b1b06e7..e04978f 100644 --- a/src/main/java/org/bdware/sc/server/DoipClusterServer.java +++ b/src/main/java/org/bdware/sc/server/DoipClusterServer.java @@ -98,7 +98,8 @@ public class DoipClusterServer extends DoipServerImpl { // 维护RouteInfo,将RouteInfo和doipOperationName的映射关系,以及所有Router中用得到的函数都维护好 // TODO 移除这部分逻辑? - cn.maintainRouteJoinInfo(methodRouteInfoMap, methodJoinInfoMap, methodForkInfoMap, functions); + cn.maintainRouteJoinInfo(methodRouteInfoMap, methodJoinInfoMap, methodForkInfoMap, + functions); if (clusterInfo != null) repoHandleValues.add("clusterInfo", clusterInfo); if (functions.size() > 0) diff --git a/src/test/java/org/bdware/analysis/DataBaseProcess.java b/src/test/java/org/bdware/analysis/DataBaseProcess.java index 075e4e7..a0d603b 100644 --- a/src/test/java/org/bdware/analysis/DataBaseProcess.java +++ b/src/test/java/org/bdware/analysis/DataBaseProcess.java @@ -7,12 +7,12 @@ public class DataBaseProcess { private static RocksDBUtil db; public static void main(String[] args) { - db = RocksDBUtil.loadDB("abc",false); + db = RocksDBUtil.loadDB("abc", false); RocksIterator iter = db.newIterator(); iter.seekToFirst();; - for (;iter.isValid();){ - db.getNext(iter); - } + for (; iter.isValid();) { + db.getNext(iter); + } // long timeJava; // try { // // start a process before