Fix variable shadowing

This commit is contained in:
Matthew Nesbit 2016-05-16 09:24:27 +01:00
parent a5791655a9
commit f26178f602

View File

@ -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)
}