Make CopyDirectlyInAnyApex match the documentation
CopyDirectlyInAnyApex was documented to copy from child to parent, but was copying from parent to child. It is unused, so reverse it to match the documentation. Bug: 183759446 Test: next CL Change-Id: I950c9b5416d66e83d76ca489aeb5e0572e005d5d
This commit is contained in:
@@ -669,8 +669,8 @@ func UpdateDirectlyInAnyApex(mctx BottomUpMutatorContext, am ApexModule) {
|
||||
mctx.VisitDirectDeps(func(dep Module) {
|
||||
if _, ok := mctx.OtherModuleDependencyTag(dep).(CopyDirectlyInAnyApexTag); ok {
|
||||
depBase := dep.(ApexModule).apexModuleBase()
|
||||
base.ApexProperties.DirectlyInAnyApex = depBase.ApexProperties.DirectlyInAnyApex
|
||||
base.ApexProperties.InAnyApex = depBase.ApexProperties.InAnyApex
|
||||
depBase.ApexProperties.DirectlyInAnyApex = base.ApexProperties.DirectlyInAnyApex
|
||||
depBase.ApexProperties.InAnyApex = base.ApexProperties.InAnyApex
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user