mirror of
https://github.com/corda/corda.git
synced 2024-12-25 23:51:10 +00:00
CORDA-2871: Minor cosmetic fixes. (#69)
This commit is contained in:
parent
394d503d41
commit
8718433be6
@ -2,8 +2,8 @@ package net.corda.djvm.serialization.deserializers
|
||||
|
||||
import java.util.function.Function
|
||||
|
||||
class DescribeEnum : Function<Class<*>, Array<out Any>> {
|
||||
override fun apply(enumClass: Class<*>): Array<out Any> {
|
||||
class DescribeEnum : Function<Class<*>, Array<out Any?>> {
|
||||
override fun apply(enumClass: Class<*>): Array<out Any?> {
|
||||
return enumClass.enumConstants
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class DeserializeEnumTest : TestBase(KOTLIN) {
|
||||
@EnumSource(ExampleEnum::class)
|
||||
fun `test deserialize basic enum`(value: ExampleEnum) {
|
||||
val example = ExampleData(value)
|
||||
val data =example.serialize()
|
||||
val data = example.serialize()
|
||||
|
||||
sandbox {
|
||||
_contextSerializationEnv.set(createSandboxSerializationEnv(classLoader))
|
||||
|
@ -41,7 +41,7 @@ abstract class TestBase(type: SandboxType) {
|
||||
|
||||
private lateinit var bootstrapClassLoader: BootstrapClassLoader
|
||||
private lateinit var configuration: SandboxConfiguration
|
||||
private lateinit var classLoader: SandboxClassLoader
|
||||
private lateinit var parentClassLoader: SandboxClassLoader
|
||||
|
||||
@BeforeAll
|
||||
@JvmStatic
|
||||
@ -65,7 +65,7 @@ abstract class TestBase(type: SandboxType) {
|
||||
true,
|
||||
rootConfiguration
|
||||
)
|
||||
classLoader = SandboxClassLoader.createFor(configuration)
|
||||
parentClassLoader = SandboxClassLoader.createFor(configuration)
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
@ -110,7 +110,7 @@ abstract class TestBase(type: SandboxType) {
|
||||
configuration.definitionProviders,
|
||||
enableTracing,
|
||||
analysisConfiguration,
|
||||
classLoader
|
||||
parentClassLoader
|
||||
)).use {
|
||||
action(this)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user