From df948231b9a7e9c9b77dae8997001c500076e380 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Wed, 30 Nov 2022 10:45:12 -0500 Subject: [PATCH] Re-add parenthesis (#1862) Apparently IntelliJ doesn't like the extra parens, but our own ErrorProne checks want it for clarity. --- .../main/java/google/registry/tools/RegistrarPocCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/google/registry/tools/RegistrarPocCommand.java b/core/src/main/java/google/registry/tools/RegistrarPocCommand.java index 68b8d6ca1..22f27cfdf 100644 --- a/core/src/main/java/google/registry/tools/RegistrarPocCommand.java +++ b/core/src/main/java/google/registry/tools/RegistrarPocCommand.java @@ -182,8 +182,9 @@ final class RegistrarPocCommand extends MutatingCommand { // strange, but we need to handle this by setting the contact types to the empty set. Also do // this if contactTypeNames is empty, which is what I would hope JCommander would return in // some future, better world. - } else if (contactTypeNames.isEmpty() - || contactTypeNames.size() == 1 && contactTypeNames.get(0).isEmpty()) { + } else //noinspection UnnecessaryParentheses + if (contactTypeNames.isEmpty() + || (contactTypeNames.size() == 1 && contactTypeNames.get(0).isEmpty())) { contactTypes = ImmutableSet.of(); } else { contactTypes =