summaryrefslogtreecommitdiff
path: root/java/bootclasspath_fragment.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2022-09-16 18:24:49 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-09-16 18:24:49 +0000
commit56fd1539f0272e48b50f1485dd4b1e03f652d414 (patch)
treed8681f24f33e692e906c13228fc977fe76de44cd /java/bootclasspath_fragment.go
parent6d01b8f516d576c4b524cb591f4e904dbbafb797 (diff)
parentd0fe1307aafc7714f3f9e9949a2c143be04fcf44 (diff)
Merge "Revert "bootclasspath_fragment: Treat some specific modules as test""
Diffstat (limited to 'java/bootclasspath_fragment.go')
-rw-r--r--java/bootclasspath_fragment.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/java/bootclasspath_fragment.go b/java/bootclasspath_fragment.go
index 93168070e..42a11fb75 100644
--- a/java/bootclasspath_fragment.go
+++ b/java/bootclasspath_fragment.go
@@ -840,22 +840,7 @@ func (b *BootclasspathFragmentModule) createHiddenAPIFlagInput(ctx android.Modul
// isTestFragment returns true if the current module is a test bootclasspath_fragment.
func (b *BootclasspathFragmentModule) isTestFragment() bool {
- if b.testFragment {
- return true
- }
-
- // TODO(b/194063708): Once test fragments all use bootclasspath_fragment_test
- // Some temporary exceptions until all test fragments use the
- // bootclasspath_fragment_test module type.
- name := b.BaseModuleName()
- if strings.HasPrefix(name, "test_") {
- return true
- }
- if name == "apex.apexd_test_bootclasspath-fragment" {
- return true
- }
-
- return false
+ return b.testFragment
}
// produceHiddenAPIOutput produces the hidden API all-flags.csv file (and supporting files)