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