From c704ff63701757bd5e8d004dabdaf8dfceab3cfa Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 19 Feb 2018 14:55:13 +0100 Subject: [PATCH] Fix a build issue caused by a bad auto-import. --- .../corda/node/internal/cordapp/CordappConfigFileProvider.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/internal/cordapp/CordappConfigFileProvider.kt b/node/src/main/kotlin/net/corda/node/internal/cordapp/CordappConfigFileProvider.kt index ce30f5f0f6..921b67f98a 100644 --- a/node/src/main/kotlin/net/corda/node/internal/cordapp/CordappConfigFileProvider.kt +++ b/node/src/main/kotlin/net/corda/node/internal/cordapp/CordappConfigFileProvider.kt @@ -4,7 +4,6 @@ import com.typesafe.config.Config import com.typesafe.config.ConfigFactory import net.corda.core.internal.cordapp.CordappConfigProvider import net.corda.core.utilities.loggerFor -import sun.plugin.dom.exception.InvalidStateException import java.io.File class CordappConfigFileProvider(val configDir: File = DEFAULT_CORDAPP_CONFIG_DIR) : CordappConfigProvider { @@ -22,7 +21,7 @@ class CordappConfigFileProvider(val configDir: File = DEFAULT_CORDAPP_CONFIG_DIR val configFile = File(configDir, name + CONFIG_EXT) return if (configFile.exists()) { if (configFile.isDirectory) { - throw InvalidStateException("ile at ${configFile.absolutePath} is a directory, expected a config file") + throw IllegalStateException("File at ${configFile.absolutePath} is a directory, expected a config file") } else { logger.info("Found config for cordapp $name in ${configFile.absolutePath}") ConfigFactory.parseFile(configFile)