all: fix some comments

Change-Id: Idd6568edd3910379c0d558fd79679dbdb589fab1
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/713082
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
cuishuang
2025-10-21 08:11:56 -07:00
committed by Gopher Robot
parent 8baca8bf4e
commit 188f512ec8
6 changed files with 5 additions and 6 deletions
-1
View File
@@ -20,7 +20,6 @@ type (
// ClassGen generates Go and C stubs for Java classes so import statements
// on the form
//
//
// import "Java/classpath/to/Class"
//
// will work.
+1 -1
View File
@@ -45,7 +45,7 @@ type javaClassInfo struct {
genNoargCon bool
}
// Init intializes the embedded Generator and initializes the Java class information
// Init initializes the embedded Generator and initializes the Java class information
// needed to generate structs that extend Java classes and interfaces.
func (g *JavaGen) Init(classes []*java.Class) {
g.Generator.Init()
+1 -1
View File
@@ -621,7 +621,7 @@ func NewMyStruct(ctx context.Context) *MyStruct {
type Int32Constructed struct{}
// Test that constuctors that clash with the internal proxy constructor
// Test that constructors that clash with the internal proxy constructor
// are skipped.
func NewInt32Constructed(i int32) *Int32Constructed {
return nil
+1 -1
View File
@@ -53,7 +53,7 @@ func run() {
// We need to give appropriate environment variables like CC or CXX so that the returned packages no longer have errors.
// However, getting such environment variables is difficult or impossible so far.
// Gomobile can obtain such environment variables in env.go, but this logic assumes some condiitons gobind doesn't assume.
// Gomobile can obtain such environment variables in env.go, but this logic assumes some conditions gobind doesn't assume.
cfg := &packages.Config{
Mode: packages.NeedName | packages.NeedFiles |
packages.NeedImports | packages.NeedDeps |
+1 -1
View File
@@ -390,7 +390,7 @@ func ndkRoot(targets ...targetInfo) (string, error) {
return "$NDK_PATH", nil
}
// Try the ANDROID_NDK_HOME variable. This approach is deprecated, but it
// Try the ANDROID_NDK_HOME variable. This approach is deprecated, but it
// has the highest priority because it represents an explicit user choice.
if ndkRoot := os.Getenv("ANDROID_NDK_HOME"); ndkRoot != "" {
if err := checkNDKRoot(ndkRoot, targets); err != nil {
+1 -1
View File
@@ -107,7 +107,7 @@ const (
Double
)
// Import returns descriptors for a list of references to
// Import returns descriptors for a list of references to
// ObjC protocols and classes.
//
// The type information is parsed from the output of clang -cc1