Merge "Pass the current API file to the metalava --use-same-format-as option" into udc-mainline-prod
diff --git a/java/droidstubs.go b/java/droidstubs.go
index 6e43b32..521afd0 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
}