Permalink
Browse files

Adopt to Kotlin code generation change

  • Loading branch information...
shafirov committed Mar 14, 2013
1 parent fc5b995 commit 2df846ba63d202b2dca417e980681b3821c843b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/KaraLib/src/kara/controllers/ReflectionUtils.kt
@@ -4,7 +4,7 @@ import java.lang.reflect.Modifier
fun Class<*>.objectInstance() : Any? {
try {
- val field = getDeclaredField("\$instance")
+ val field = getDeclaredField("instance\$")
if (Modifier.isStatic(field.getModifiers()) && Modifier.isPublic(field.getModifiers())) {
return field.get(null)!!
}

0 comments on commit 2df846b

Please sign in to comment.