From dc1c0fd73ca2d2dffdc17bbba4bc4eb945c31122 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Wed, 7 Sep 2016 09:06:34 -0700 Subject: [PATCH] Make boolean operator precedence unambiguous in ClaimsListShard ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132442796 --- java/google/registry/model/tmch/ClaimsListShard.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/google/registry/model/tmch/ClaimsListShard.java b/java/google/registry/model/tmch/ClaimsListShard.java index 23ac8569b..87a1bc48c 100644 --- a/java/google/registry/model/tmch/ClaimsListShard.java +++ b/java/google/registry/model/tmch/ClaimsListShard.java @@ -181,8 +181,9 @@ public class ClaimsListShard extends ImmutableObject { ofy().transactNew(new VoidWork() { @Override public void vrun() { - verify(getCurrentRevision() == null && oldRevision == null - || getCurrentRevision().equals(oldRevision), + verify( + (getCurrentRevision() == null && oldRevision == null) + || getCurrentRevision().equals(oldRevision), "ClaimsList on Registries was updated by someone else while attempting to update."); ofy().saveWithoutBackup().entity(ClaimsListSingleton.create(parentKey)); // Delete the old ClaimsListShard entities.