Android: Simplify GetJavaEnumName
We can call name() on the base class java.lang.Enum instead of the specific enum subclass. Bug: webrtc:8278 Change-Id: I12f8354d99e48b4a5e3d3eaff74a85ac417df0b3 Reviewed-on: https://webrtc-review.googlesource.com/24440 Commit-Queue: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20790}
This commit is contained in:
committed by
Commit Bot
parent
ae02609645
commit
c6a003c192
@ -130,9 +130,7 @@ std::map<std::string, std::string> JavaToStdMapStrings(JNIEnv* jni,
|
||||
jobject j_map);
|
||||
|
||||
// Returns the name of a Java enum.
|
||||
std::string GetJavaEnumName(JNIEnv* jni,
|
||||
const std::string& className,
|
||||
jobject j_enum);
|
||||
std::string GetJavaEnumName(JNIEnv* jni, jobject j_enum);
|
||||
|
||||
jobject NewGlobalRef(JNIEnv* jni, jobject o);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user