diff --git a/build.gradle b/build.gradle index b838c23..e0f799c 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ sourceSets { dependencies { implementation project(":common") implementation project(":mockjava") - + implementation 'org.apache.commons:commons-lang3:3.0' implementation 'com.atlassian.commonmark:commonmark:0.17.0' implementation 'com.idealista:format-preserving-encryption:1.0.0' implementation 'com.squareup.okhttp3:okhttp:4.9.1' @@ -35,9 +35,9 @@ dependencies { implementation 'org.apache.commons:commons-math3:3.6.1' implementation 'org.codehaus.groovy:groovy-all:3.0.8' implementation 'org.jsoup:jsoup:1.14.2' - + implementation 'org.apache.httpcomponents:httpclient:4.5.13' implementation fileTree(dir: 'lib', include: '*.jar') - + implementation 'io.grpc:grpc-all:1.41.0' testImplementation 'junit:junit:4.13.2' } diff --git a/src/main/java/org/bdware/sc/ContractProcess.java b/src/main/java/org/bdware/sc/ContractProcess.java index 3546893..38eda38 100644 --- a/src/main/java/org/bdware/sc/ContractProcess.java +++ b/src/main/java/org/bdware/sc/ContractProcess.java @@ -5,7 +5,6 @@ import com.google.gson.JsonPrimitive; import com.google.gson.JsonSyntaxException; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.MalformedJsonException; -import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.core.config.Configurator; import org.bdware.analysis.BasicBlock; @@ -472,7 +471,7 @@ public class ContractProcess { List functionNodes = cn.getFunctions(); LOGGER.debug( "functionNodes jointInfo: " - + StringUtils.join( + + JsonUtil.toPrettyJson( functionNodes.stream() .map( x -> { @@ -481,8 +480,7 @@ public class ContractProcess { ? "null" : joinInfo; }) - .toArray(), - " ")); + .toArray())); injectHandlers(); this.contract.setYjsType(cn.getYjsType());