mirror of
https://github.com/corda/corda.git
synced 2025-06-23 01:19:00 +00:00
Fix variable shadowing
This commit is contained in:
@ -108,8 +108,8 @@ class Node(dir: Path, val p2pAddr: HostAndPort, configuration: NodeConfiguration
|
|||||||
resourceConfig.register(api)
|
resourceConfig.register(api)
|
||||||
|
|
||||||
clientAPIs.forEach {
|
clientAPIs.forEach {
|
||||||
customAPI ->
|
customAPIClass ->
|
||||||
val customAPI = customAPI.getConstructor(api.APIServer::class.java)
|
val customAPI = customAPIClass.getConstructor(api.APIServer::class.java)
|
||||||
.newInstance(api)
|
.newInstance(api)
|
||||||
resourceConfig.register(customAPI)
|
resourceConfig.register(customAPI)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user