Remove most warnings in ORX

Closes #61
This commit is contained in:
Edwin Jakobs
2020-04-09 16:00:27 +02:00
parent 8fc74555b3
commit d0d096d773
10 changed files with 55 additions and 57 deletions

View File

@@ -34,7 +34,7 @@ fun preprocessShader(source: String): String {
"/* imported from $packageClass.$it */\n${it.get(null)}\n"
}.joinToString("\n")
} else {
var result:String? = null
var result:String?
try {
val methodName = "get${fieldName.take(1).toUpperCase() + fieldName.drop(1)}"
result = c.getMethod(methodName).invoke(null) as String