From 79f080368b963f029629ffa90e62c97d847e587d Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Fri, 27 Oct 2017 09:37:39 +0100 Subject: [PATCH] Code rewiew: constant naming --- .../kotlin/net/corda/node/services/config/NodeConfiguration.kt | 2 +- .../corda/node/services/statemachine/StateMachineManagerImpl.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt b/node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt index 2fcba96f70..cce2e7d6d2 100644 --- a/node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt +++ b/node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt @@ -38,7 +38,7 @@ interface NodeConfiguration : NodeSSLConfiguration { val additionalNodeInfoPollingFrequencyMsec: Long companion object { - val disableCheckpointCheckerFlag = "disableCheckpointChecker" + const val DISABLE_CHECKPOINT_CHECKER = "disableCheckpointChecker" } } diff --git a/node/src/main/kotlin/net/corda/node/services/statemachine/StateMachineManagerImpl.kt b/node/src/main/kotlin/net/corda/node/services/statemachine/StateMachineManagerImpl.kt index ed559f3411..3e05a45e1f 100644 --- a/node/src/main/kotlin/net/corda/node/services/statemachine/StateMachineManagerImpl.kt +++ b/node/src/main/kotlin/net/corda/node/services/statemachine/StateMachineManagerImpl.kt @@ -91,7 +91,7 @@ class StateMachineManagerImpl( private val mutex = ThreadBox(InnerState()) // This thread (only enabled in dev mode) deserialises checkpoints in the background to shake out bugs in checkpoint restore. private val checkpointCheckerThread = if (serviceHub.configuration.devMode - && !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.disableCheckpointCheckerFlag)) + && !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.DISABLE_CHECKPOINT_CHECKER)) newNamedSingleThreadExecutor("CheckpointChecker") else null @Volatile private var unrestorableCheckpoints = false