mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind: use lowercase method names for Java binds
There was a discussion a year ago about making methods and types lowercase in ObjC (https://github.com/golang/go/issues/12889), which was done (https://go-review.googlesource.com/#/c/15780/), alas the suggested Java lower casing was never addressed. This CL converts all generated Java methods to lower case. Change-Id: Ia2f28519bc59362877881636109ddfc651b24960 Reviewed-on: https://go-review.googlesource.com/28494 Reviewed-by: Elias Naur <elias.naur@gmail.com> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
committed by
Elias Naur
parent
f7e06c9519
commit
2f75be449f
Vendored
+9
-9
@@ -18,7 +18,7 @@ jclass proxy_class_structs_S2;
|
||||
jmethodID proxy_class_structs_S2_cons;
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_go_structs_Structs_init(JNIEnv *env, jclass _unused) {
|
||||
Java_go_structs_Structs__1init(JNIEnv *env, jclass _unused) {
|
||||
jclass clazz;
|
||||
clazz = (*env)->FindClass(env, "go/structs/S");
|
||||
proxy_class_structs_S = (*env)->NewGlobalRef(env, clazz);
|
||||
@@ -30,12 +30,12 @@ Java_go_structs_Structs_init(JNIEnv *env, jclass _unused) {
|
||||
proxy_class_structs_I = (*env)->NewGlobalRef(env, clazz);
|
||||
proxy_class_structs_I_cons = (*env)->GetMethodID(env, clazz, "<init>", "(Lgo/Seq$Ref;)V");
|
||||
clazz = (*env)->FindClass(env, "go/structs/I");
|
||||
mid_I_M = (*env)->GetMethodID(env, clazz, "M", "()V");
|
||||
mid_I_M = (*env)->GetMethodID(env, clazz, "m", "()V");
|
||||
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_go_structs_Structs_Identity(JNIEnv* env, jclass clazz, jobject s) {
|
||||
Java_go_structs_Structs_identity(JNIEnv* env, jclass clazz, jobject s) {
|
||||
int32_t _s = go_seq_to_refnum(env, s);
|
||||
int32_t r0 = proxystructs__Identity(_s);
|
||||
jobject _r0 = go_seq_from_refnum(env, r0, proxy_class_structs_S, proxy_class_structs_S_cons);
|
||||
@@ -43,7 +43,7 @@ Java_go_structs_Structs_Identity(JNIEnv* env, jclass clazz, jobject s) {
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_go_structs_Structs_IdentityWithError(JNIEnv* env, jclass clazz, jobject s) {
|
||||
Java_go_structs_Structs_identityWithError(JNIEnv* env, jclass clazz, jobject s) {
|
||||
int32_t _s = go_seq_to_refnum(env, s);
|
||||
struct proxystructs__IdentityWithError_return res = proxystructs__IdentityWithError(_s);
|
||||
jobject _r0 = go_seq_from_refnum(env, res.r0, proxy_class_structs_S, proxy_class_structs_S_cons);
|
||||
@@ -53,7 +53,7 @@ Java_go_structs_Structs_IdentityWithError(JNIEnv* env, jclass clazz, jobject s)
|
||||
}
|
||||
|
||||
JNIEXPORT jobject JNICALL
|
||||
Java_go_structs_S_Identity(JNIEnv* env, jobject this) {
|
||||
Java_go_structs_S_identity(JNIEnv* env, jobject this) {
|
||||
int32_t o = go_seq_to_refnum(env, this);
|
||||
struct proxystructs_S_Identity_return res = proxystructs_S_Identity(o);
|
||||
jobject _r0 = go_seq_from_refnum(env, res.r0, proxy_class_structs_S, proxy_class_structs_S_cons);
|
||||
@@ -63,7 +63,7 @@ Java_go_structs_S_Identity(JNIEnv* env, jobject this) {
|
||||
}
|
||||
|
||||
JNIEXPORT jdouble JNICALL
|
||||
Java_go_structs_S_Sum(JNIEnv* env, jobject this) {
|
||||
Java_go_structs_S_sum(JNIEnv* env, jobject this) {
|
||||
int32_t o = go_seq_to_refnum(env, this);
|
||||
double r0 = proxystructs_S_Sum(o);
|
||||
jdouble _r0 = (jdouble)r0;
|
||||
@@ -101,13 +101,13 @@ Java_go_structs_S_getY(JNIEnv *env, jobject this) {
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_go_structs_S2_M(JNIEnv* env, jobject this) {
|
||||
Java_go_structs_S2_m(JNIEnv* env, jobject this) {
|
||||
int32_t o = go_seq_to_refnum(env, this);
|
||||
proxystructs_S2_M(o);
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_go_structs_S2_String(JNIEnv* env, jobject this) {
|
||||
Java_go_structs_S2_string(JNIEnv* env, jobject this) {
|
||||
int32_t o = go_seq_to_refnum(env, this);
|
||||
nstring r0 = proxystructs_S2_String(o);
|
||||
jstring _r0 = go_seq_to_java_string(env, r0);
|
||||
@@ -115,7 +115,7 @@ Java_go_structs_S2_String(JNIEnv* env, jobject this) {
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_go_structs_Structs_00024proxyI_M(JNIEnv* env, jobject this) {
|
||||
Java_go_structs_Structs_00024proxyI_m(JNIEnv* env, jobject this) {
|
||||
int32_t o = go_seq_to_refnum(env, this);
|
||||
proxystructs_I_M(o);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user