Loading java/java.go +1 −6 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ package java import ( "fmt" "path/filepath" "strings" "github.com/google/blueprint" "github.com/google/blueprint/proptools" Loading Loading @@ -1465,11 +1464,7 @@ func (j *Import) IDECustomizedModuleName() string { // TODO(b/113562217): Extract the base module name from the Import name, often the Import name // has a prefix "prebuilt_". Remove the prefix explicitly if needed until we find a better // solution to get the Import name. name := j.Name() if strings.HasPrefix(name, removedPrefix) { name = strings.TrimPrefix(name, removedPrefix) } return name return android.RemoveOptionalPrebuiltPrefix(j.Name()) } var _ android.PrebuiltInterface = (*Import)(nil) Loading java/robolectric.go +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ func (r *robolectricTest) GenerateAndroidBuildActions(ctx android.ModuleContext) continue } else if strings.HasSuffix(s, "/BaseRobolectricTest.java") { continue } else if strings.HasPrefix(s, "src/") { } else { s = strings.TrimPrefix(s, "src/") } r.tests = append(r.tests, s) Loading Loading
java/java.go +1 −6 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ package java import ( "fmt" "path/filepath" "strings" "github.com/google/blueprint" "github.com/google/blueprint/proptools" Loading Loading @@ -1465,11 +1464,7 @@ func (j *Import) IDECustomizedModuleName() string { // TODO(b/113562217): Extract the base module name from the Import name, often the Import name // has a prefix "prebuilt_". Remove the prefix explicitly if needed until we find a better // solution to get the Import name. name := j.Name() if strings.HasPrefix(name, removedPrefix) { name = strings.TrimPrefix(name, removedPrefix) } return name return android.RemoveOptionalPrebuiltPrefix(j.Name()) } var _ android.PrebuiltInterface = (*Import)(nil) Loading
java/robolectric.go +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ func (r *robolectricTest) GenerateAndroidBuildActions(ctx android.ModuleContext) continue } else if strings.HasSuffix(s, "/BaseRobolectricTest.java") { continue } else if strings.HasPrefix(s, "src/") { } else { s = strings.TrimPrefix(s, "src/") } r.tests = append(r.tests, s) Loading