Make boolean operator precedence unambiguous in ClaimsListShard

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132442796
This commit is contained in:
mcilwain 2016-09-07 09:06:34 -07:00 committed by Ben McIlwain
parent 8cfa643598
commit 2b42118aaf

View file

@ -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.