Descriptionandroid: JavaRef type behaviour improvements.
Several improvements to the behaviour of JavaRef types:
1) Make JavaRef's default constructor public. You can get a null JavaRef
by conversion from nullptr_t already, so default-constructing one
seems fine too.
2) Replace templating on a second generic type U with simply JavaRef<T>.
All existing usage works fine with this; it simplifies the
implementation and creates fewer ambiguities.
3) Add comments to ScopedJavaLocalRef about the behaviour of the
constructor and Reset() overloads that take (JNIEnv*, T) as
parameters, as the current behaviour is confusing but can't yet be
changed.
BUG=519562
Committed: https://crrev.com/7588d910ee25079d1d5687cd3b6c9a39738d84c1
Cr-Commit-Position: refs/heads/master@{#435210}
Patch Set 1 #
Messages
Total messages: 13 (6 generated)
|