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