Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 629b9d28 authored by Paul Duffin's avatar Paul Duffin
Browse files

Retain concrete overrides of abstract methods by default

Bug: 299366704
Test: m checkapi
Change-Id: I3d9fafefe90a98568c16d80c30e4d1d88a22c350
parent 57e60bf8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -538,7 +538,9 @@ func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersi

	// Force metalava to sort overloaded methods by their order in the source code.
	// See b/285312164 for more information.
	cmd.FlagWithArg("--format-defaults ", "overloaded-method-order=source")
	// And add concrete overrides of abstract methods, see b/299366704 for more
	// information.
	cmd.FlagWithArg("--format-defaults ", "overloaded-method-order=source,add-additional-overrides=yes")

	if ctx.DeviceConfig().HideFlaggedApis() {
		cmd.FlagWithArg("--hide-annotation ", "android.annotation.FlaggedApi")