You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
javaConstructorToValueCreator.putIfAbsent(constructor, value) ?: value
69
+
javaExecutableToValueCreator.putIfAbsent(constructor, value) ?: value
70
70
}
71
71
}
72
72
isAnnotatedMethod-> {
73
-
val method =_withArgsCreator.annotatedasMethod
73
+
val method =_withArgsCreator.annotated
74
74
75
-
javaMethodToValueCreator.get(method)
75
+
javaExecutableToValueCreator.get(method)
76
76
?: kotlinFromJava(method)?.let {
77
77
val value =MethodValueCreator.of(it)
78
-
javaMethodToValueCreator.putIfAbsent(method, value) ?: value
78
+
javaExecutableToValueCreator.putIfAbsent(method, value) ?: value
79
79
}
80
80
}
81
-
else->throwIllegalStateException("Expected a constructor or method to create a Kotlin object, instead found ${_withArgsCreator.annotated.javaClass.name}")
81
+
else->throwIllegalStateException(
82
+
"Expected a constructor or method to create a Kotlin object,"+
83
+
" instead found ${_withArgsCreator.annotated.javaClass.name}"
84
+
)
82
85
} // we cannot reflect this method so do the default Java-ish behavior
0 commit comments