diff --git a/java/droidstubs.go b/java/droidstubs.go index f05ef1fdd..1d5dd7624 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -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 }