From 575192016fffc4d86d8db2f32261d2f9fe8c0773 Mon Sep 17 00:00:00 2001 From: Ben McIlwain Date: Mon, 10 Aug 2026 18:03:26 -0400 Subject: [PATCH] Change rotatePrimaryCert type to primitive boolean (#3205) Change the rotatePrimaryCert field in CreateOrUpdateRegistrarCommand from object Boolean to primitive boolean. Since the field is initialized to default false and used as a presence-based switch without tri-state semantics, primitive boolean accurately reflects its behavior and avoids unnecessary object wrapper overhead. BUG= http://b/537308816 --- .../google/registry/tools/CreateOrUpdateRegistrarCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java b/core/src/main/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java index 046403a3a..f9f90a98d 100644 --- a/core/src/main/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java +++ b/core/src/main/java/google/registry/tools/CreateOrUpdateRegistrarCommand.java @@ -138,7 +138,7 @@ abstract class CreateOrUpdateRegistrarCommand extends MutatingCommand { description = "Used together with --cert_file when updating an registrar. " + "If set, current cert is saved as failover.") - private Boolean rotatePrimaryCert = Boolean.FALSE; + private boolean rotatePrimaryCert = false; @Nullable @Parameter(