MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newJavaBooleanObject

Function newJavaBooleanObject

valdi_core/src/valdi_core/jni/JavaUtils.cpp:380–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378 if (javaFunction != nullptr) {
379 // unwrap the underlying Java object
380 return javaFunction->toObject();
381 }
382
383 auto* functionCopy = new Valdi::Value(value);
384
385 auto actionObject = JavaEnv::getCache().getValdiFunctionNativeClass().newObject(
386 JavaEnv::getCache().getValdiFunctionNativeConstructorMethod(), reinterpret_cast<int64_t>(functionCopy));

Callers 2

toJavaObjectFunction · 0.85
newBoolObjectMethod · 0.85

Calls 2

getFunction · 0.50
newObjectMethod · 0.45

Tested by

no test coverage detected