From 10061107dfb9661e4b93739eed37ac4001639f75 Mon Sep 17 00:00:00 2001 From: Chris Rankin Date: Mon, 30 Jan 2017 14:17:58 +0000 Subject: [PATCH] Small tidy-up. --- .../src/main/kotlin/net/corda/demobench/model/DBViewer.kt | 5 +++-- .../kotlin/net/corda/demobench/views/NodeTerminalView.kt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/model/DBViewer.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/model/DBViewer.kt index 49876c639b..ec0d201bdc 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/model/DBViewer.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/model/DBViewer.kt @@ -5,6 +5,7 @@ import org.h2.tools.Server import org.h2.util.JdbcUtils import org.slf4j.LoggerFactory import java.util.concurrent.Executors +import kotlin.reflect.jvm.jvmName class DBViewer : AutoCloseable { @@ -22,14 +23,14 @@ class DBViewer : AutoCloseable { fun openBrowser(h2Port: Int) { val conn = JdbcUtils.getConnection( - "org.h2.Driver", + org.h2.Driver::class.jvmName, "jdbc:h2:tcp://localhost:%d/node".format(h2Port), "sa", "" ) val url = (webServer.service as LocalWebServer).addSession(conn) - log.info("URL: {}", url) + log.info("Session: {}", url) pool.execute { Server.openBrowser(url) diff --git a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt index 28e4ee1b69..51c7f71364 100644 --- a/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt +++ b/tools/demobench/src/main/kotlin/net/corda/demobench/views/NodeTerminalView.kt @@ -32,7 +32,7 @@ class NodeTerminalView : Fragment() { private val viewDatabaseButton by fxid