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

Reformat.

This commit is contained in:
Cedric Beust 2017-02-17 13:32:51 -08:00
parent 04810f4df8
commit 205f10a53d

View file

@ -84,7 +84,8 @@ class BuildScriptUtil @Inject constructor(val plugins: Plugins, val files: KFile
}.forEach { cls ->
cls.methods.forEach { method ->
// Invoke vals and see if they return a Project
if (method.name.startsWith("get") && Modifier.isStatic(method.modifiers) && method.parameterCount == 0) {
if (method.name.startsWith("get") && Modifier.isStatic(method.modifiers)
&& method.parameterCount == 0) {
try {
val r = method.invoke(null)
if (r is Project) {