1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Minor fixes.

This commit is contained in:
Cedric Beust 2015-10-05 23:41:14 -07:00
parent 8b71194d4c
commit fc1779f8fa
2 changed files with 3 additions and 3 deletions

View file

@ -166,7 +166,7 @@ public class Plugins @Inject constructor (val taskManagerProvider : Provider<Tas
if (method.returnType != TaskResult::class.java) {
throw IllegalArgumentException("${t}should return a TaskResult")
}
if (method.parameterCount != 1) {
if (method.parameterTypes.size() != 1) {
throw IllegalArgumentException("${t}should take exactly one parameter of type a Project")
}
with(method.parameterTypes) {

View file

@ -124,8 +124,8 @@ public class JCenterApi @Inject constructor (@Nullable @Assisted("username") val
} else {
result = TaskResult(false, failures.values().join(" "))
error("Failed to upload ${failures.size()} files:")
failures.forEach { k, v ->
error(" - ${k} : ${v}")
failures.forEach{ entry ->
error(" - ${entry.key} : ${entry.value}")
}
}