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
71
+
}
72
+
}
73
+
isAnnotatedMethod-> {
74
+
val method =_withArgsCreator.annotated asMethod
75
+
76
+
javaMethodToValueCreator.get(method)
77
+
?: kotlinFromJava(method)?.let {
78
+
val value =MethodValueCreator.of(it)
79
+
80
+
javaMethodToValueCreator.putIfAbsent(method, value) ?: value
81
+
}
82
+
}
83
+
else->throwIllegalStateException("Expected a constructor or method to create a Kotlin object, instead found ${_withArgsCreator.annotated.javaClass.name}")
84
+
} // we cannot reflect this method so do the default Java-ish behavior
else->throwIllegalStateException("Expected a constructor or method to create a Kotlin object, instead found ${_withArgsCreator.annotated.javaClass.name}")
62
-
} // we cannot reflect this method so do the default Java-ish behavior
0 commit comments