mirror of
https://github.com/corda/corda.git
synced 2025-01-15 17:30:02 +00:00
Merge pull request #276 from corda/bogdan-date-to-localdatetime
replace java.Date with java.time
This commit is contained in:
commit
52a6abefb5
@ -6,7 +6,6 @@ import net.corda.node.utilities.AffinityExecutor
|
||||
import net.corda.nodeapi.internal.persistence.CordaPersistence
|
||||
import net.corda.nodeapi.internal.persistence.NODE_DATABASE_PREFIX
|
||||
import org.hibernate.Session
|
||||
import java.text.SimpleDateFormat
|
||||
import java.time.Duration
|
||||
import java.time.LocalDateTime
|
||||
import java.time.temporal.ChronoField
|
||||
@ -37,7 +36,6 @@ class RunOnceService(private val database: CordaPersistence, private val machine
|
||||
|
||||
private val log = loggerFor<RunOnceService>()
|
||||
private val running = AtomicBoolean(false)
|
||||
private val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS")
|
||||
|
||||
init {
|
||||
if (waitInterval <= updateInterval) {
|
||||
@ -165,4 +163,4 @@ class RunOnceService(private val database: CordaPersistence, private val machine
|
||||
|
||||
return returnValue == 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -244,4 +244,4 @@ class RunOnceServiceTest {
|
||||
assertTrue(result.timestamp is LocalDateTime)
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user