From 416a39b0030d8ad2d983cfe7f48d88240e421d4b Mon Sep 17 00:00:00 2001 From: jianglai Date: Fri, 12 Apr 2019 09:11:05 -0700 Subject: [PATCH] Remove @OnLoad on setDefaultNumDnsPublishLocks All entities are updated. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=243274828 --- java/google/registry/model/registry/Registry.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/java/google/registry/model/registry/Registry.java b/java/google/registry/model/registry/Registry.java index 0bdcd118a..3cead94fd 100644 --- a/java/google/registry/model/registry/Registry.java +++ b/java/google/registry/model/registry/Registry.java @@ -43,7 +43,6 @@ import com.googlecode.objectify.annotation.Embed; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Mapify; -import com.googlecode.objectify.annotation.OnLoad; import com.googlecode.objectify.annotation.OnSave; import com.googlecode.objectify.annotation.Parent; import google.registry.model.Buildable; @@ -277,12 +276,7 @@ public class Registry extends ImmutableObject implements Buildable { */ int numDnsPublishLocks; - /** - * Updates an unset numDnsPublishLocks (0) to the standard default of 1. - * - *

TODO(b/74010245): Remove OnLoad once all Registry objects have this value set to 1. - */ - @OnLoad + /** Updates an unset numDnsPublishLocks (0) to the standard default of 1. */ void setDefaultNumDnsPublishLocks() { if (numDnsPublishLocks == 0) { numDnsPublishLocks = 1;