diff --git a/android/override_module.go b/android/override_module.go index 5bc787b54..9f5127dc3 100644 --- a/android/override_module.go +++ b/android/override_module.go @@ -121,13 +121,13 @@ type OverridableModuleBase struct { // override information is propagated and aggregated correctly. overridesProperty *[]string - properties overridableModuleProperties + overridableModuleProperties overridableModuleProperties } func InitOverridableModule(m OverridableModule, overridesProperty *[]string) { m.setOverridableProperties(m.(Module).GetProperties()) m.setOverridesProperty(overridesProperty) - m.AddProperties(&m.moduleBase().properties) + m.AddProperties(&m.moduleBase().overridableModuleProperties) } func (o *OverridableModuleBase) moduleBase() *OverridableModuleBase { @@ -174,7 +174,7 @@ func (b *OverridableModuleBase) override(ctx BaseModuleContext, o OverrideModule if b.overridesProperty != nil { *b.overridesProperty = append(*b.overridesProperty, ctx.ModuleName()) } - b.properties.OverriddenBy = o.Name() + b.overridableModuleProperties.OverriddenBy = o.Name() } // GetOverriddenBy returns the name of the override module that has overridden this module. @@ -182,7 +182,7 @@ func (b *OverridableModuleBase) override(ctx BaseModuleContext, o OverrideModule // of bar is created and its properties are overriden by foo. This method returns bar when called from // the new local variant. It returns "" when called from the original variant of bar. func (b *OverridableModuleBase) GetOverriddenBy() string { - return b.properties.OverriddenBy + return b.overridableModuleProperties.OverriddenBy } func (b *OverridableModuleBase) OverridablePropertiesDepsMutator(ctx BottomUpMutatorContext) {