2
0
mirror of synced 2025-02-23 06:48:15 +00:00

bind: keep package function comments in java file

previously package level function comments are ignored. this change
keeps the comment in generated java files

Change-Id: I86dcd93b1026c4455d2c4782cbc9f30b514b3107
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/181038
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Junda Liu 2019-06-06 13:07:05 -07:00 committed by Hyang-Ah Hana Kim
parent 32b2708ab1
commit 6fa95d984e
2 changed files with 7 additions and 0 deletions

View File

@ -1655,6 +1655,7 @@ func (g *JavaGen) GenJava() error {
g.Printf("// skipped function %s with unsupported parameter or return types\n\n", f.Name())
continue
}
g.javadoc(g.docs[f.Name()].Doc())
g.Printf("public static native ")
g.genFuncSignature(f, nil, false)
}

View File

@ -308,6 +308,12 @@ public abstract class Doc {
*/
public static native String getV();
/**
* F is a function.
*/
public static native void f();
/**
* NewS is a constructor.
*/
public static native S newS();
}