From 3a0c84e0ee1c3166d528c6e12f302a4d508dd1ce Mon Sep 17 00:00:00 2001 From: mcilwain Date: Wed, 25 Oct 2017 13:39:45 -0700 Subject: [PATCH] Remove unnecessary Boolean boxing/unboxing ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173443024 --- java/google/registry/tools/RegistrarContactCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/google/registry/tools/RegistrarContactCommand.java b/java/google/registry/tools/RegistrarContactCommand.java index 1e9012a8f..89b5fc826 100644 --- a/java/google/registry/tools/RegistrarContactCommand.java +++ b/java/google/registry/tools/RegistrarContactCommand.java @@ -184,7 +184,7 @@ final class RegistrarContactCommand extends MutatingCommand { break; case CREATE: stageEntityChange(null, createContact(registrar)); - if ((visibleInDomainWhoisAsAbuse != null) && visibleInDomainWhoisAsAbuse.booleanValue()) { + if ((visibleInDomainWhoisAsAbuse != null) && visibleInDomainWhoisAsAbuse) { unsetOtherWhoisAbuseFlags(contacts, null /* emailAddressNotToChange */ ); } break; @@ -201,7 +201,7 @@ final class RegistrarContactCommand extends MutatingCommand { "Cannot clear visible_in_domain_whois_as_abuse flag, as that would leave no domain" + " WHOIS abuse contacts; instead, set the flag on another contact"); stageEntityChange(oldContact, newContact); - if ((visibleInDomainWhoisAsAbuse != null) && visibleInDomainWhoisAsAbuse.booleanValue()) { + if ((visibleInDomainWhoisAsAbuse != null) && visibleInDomainWhoisAsAbuse) { unsetOtherWhoisAbuseFlags(contacts, oldContact.getEmailAddress()); } break;