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

Bug: 300052204
Test: m checkapi
(cherry picked from https://android-review.googlesource.com/q/commit:504d3565790b0dc5220f9c9c7ae230fad758fed7)
Merged-In: I8952a828437872ceebf7f9da4dc297173ed2a90b
Change-Id: I8952a828437872ceebf7f9da4dc297173ed2a90b
diff --git a/java/droidstubs.go b/java/droidstubs.go
index 9379b88..faa7f7d 100644
--- a/java/droidstubs.go
+++ b/java/droidstubs.go
@@ -540,7 +540,7 @@
 
 	// 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
 }