mirror of
https://github.com/google/nomulus
synced 2026-01-07 14:05:44 +00:00
Make boolean operator precedence unambiguous in ClaimsListShard
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132442796
This commit is contained in:
@@ -181,8 +181,9 @@ public class ClaimsListShard extends ImmutableObject {
|
|||||||
ofy().transactNew(new VoidWork() {
|
ofy().transactNew(new VoidWork() {
|
||||||
@Override
|
@Override
|
||||||
public void vrun() {
|
public void vrun() {
|
||||||
verify(getCurrentRevision() == null && oldRevision == null
|
verify(
|
||||||
|| getCurrentRevision().equals(oldRevision),
|
(getCurrentRevision() == null && oldRevision == null)
|
||||||
|
|| getCurrentRevision().equals(oldRevision),
|
||||||
"ClaimsList on Registries was updated by someone else while attempting to update.");
|
"ClaimsList on Registries was updated by someone else while attempting to update.");
|
||||||
ofy().saveWithoutBackup().entity(ClaimsListSingleton.create(parentKey));
|
ofy().saveWithoutBackup().entity(ClaimsListSingleton.create(parentKey));
|
||||||
// Delete the old ClaimsListShard entities.
|
// Delete the old ClaimsListShard entities.
|
||||||
|
|||||||
Reference in New Issue
Block a user