Refactor Runnable C++ class to compile in OSS

Summary:
This diff refactors the class Runnable into a struct to make it work in OSS

changelog: [internal] internal

Reviewed By: JoshuaGross

Differential Revision: D22963704

fbshipit-source-id: 2212c8f1e4a62b2bcad5c061709e29b247454fc1
This commit is contained in:
David Vacca
2020-08-07 19:49:19 -07:00
committed by Facebook GitHub Bot
parent d1d42475e9
commit 61a16fe1b6
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@ BackgroundExecutor JBackgroundExecutor::get() {
->getMethod<void(Runnable::javaobject)>("queueRunnable");
auto jrunnable = JNativeRunnable::newObjectCxxArgs(std::move(runnable));
method(self, static_ref_cast<Runnable>(jrunnable).get());
method(self, static_ref_cast<Runnable::javaobject>(jrunnable).get());
};
}