Skip to content
Commit 0c13c671 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

Remove unnecessary calls to JNIEnv::GetArrayLength



Replace repeated calls to JNIEnv::GetArrayLength operating on the same
array with a cached value obtained once and then reused.

Bug: 165832481
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: Id85f887a9a4dc8eeacbb047beca7ced49853484e
parent ca115f20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment