Replace --api-overloaded-method--order with --format-defaults

Bug: 300052204
Test: m checkapi
Change-Id: I8952a828437872ceebf7f9da4dc297173ed2a90b
This commit is contained in:
Paul Duffin
2023-09-13 00:00:58 +01:00
parent d753c2e53c
commit 504d356579

View File

@@ -539,7 +539,7 @@ 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("--api-overloaded-method-order ", "source")
cmd.FlagWithArg("--format-defaults ", "overloaded-method-order=source")
return cmd
}