Remove @OnLoad on setDefaultNumDnsPublishLocks

All entities are updated.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=243274828
This commit is contained in:
jianglai 2019-04-12 09:11:05 -07:00 committed by Ben McIlwain
parent 63807aa9be
commit 416a39b003

View file

@ -43,7 +43,6 @@ import com.googlecode.objectify.annotation.Embed;
import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Mapify; import com.googlecode.objectify.annotation.Mapify;
import com.googlecode.objectify.annotation.OnLoad;
import com.googlecode.objectify.annotation.OnSave; import com.googlecode.objectify.annotation.OnSave;
import com.googlecode.objectify.annotation.Parent; import com.googlecode.objectify.annotation.Parent;
import google.registry.model.Buildable; import google.registry.model.Buildable;
@ -277,12 +276,7 @@ public class Registry extends ImmutableObject implements Buildable {
*/ */
int numDnsPublishLocks; int numDnsPublishLocks;
/** /** Updates an unset numDnsPublishLocks (0) to the standard default of 1. */
* Updates an unset numDnsPublishLocks (0) to the standard default of 1.
*
* <p>TODO(b/74010245): Remove OnLoad once all Registry objects have this value set to 1.
*/
@OnLoad
void setDefaultNumDnsPublishLocks() { void setDefaultNumDnsPublishLocks() {
if (numDnsPublishLocks == 0) { if (numDnsPublishLocks == 0) {
numDnsPublishLocks = 1; numDnsPublishLocks = 1;