Revert "Fix coverage when transitive jars are enabled"
This reverts commit d433bd5eb4b397793dfe93ec746bb5a96a20b048.
Reason for revert: DroidMonitor created revert due to build failure b/369472611.
Change-Id: Ia59111944ea070e3fd05e124f6e9251ef7545319
diff --git a/java/base.go b/java/base.go
index f9e1b38..ef299b2 100644
--- a/java/base.go
+++ b/java/base.go
@@ -1736,9 +1736,7 @@
}
if j.shouldInstrument(ctx) {
- instrumentedOutputFile := j.instrument(ctx, flags, outputFile, jarName, specs)
- completeStaticLibsImplementationJars = android.NewDepSet(android.PREORDER, android.Paths{instrumentedOutputFile}, nil)
- outputFile = instrumentedOutputFile
+ outputFile = j.instrument(ctx, flags, outputFile, jarName, specs)
}
// merge implementation jar with resources if necessary