Fix a few stylistic issues in preparation for Checkstyle addition

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=230524735
This commit is contained in:
gbrodman 2019-01-23 07:18:45 -08:00 committed by jianglai
parent 2c2b1da836
commit 701ebc6a28
8 changed files with 25 additions and 13 deletions

View file

@ -84,7 +84,7 @@ public class RestoreCommitLogsAction implements Runnable {
@Override
public void run() {
checkArgument( // safety
checkArgument(
RegistryEnvironment.get() == RegistryEnvironment.ALPHA
|| RegistryEnvironment.get() == RegistryEnvironment.CRASH
|| RegistryEnvironment.get() == RegistryEnvironment.UNITTEST,

View file

@ -14,8 +14,8 @@
package google.registry.keyring;
import static com.google.common.base.Preconditions.checkState;
import dagger.Module;
import dagger.Provides;
import google.registry.config.RegistryConfig.Config;

View file

@ -160,9 +160,8 @@ public class RequestAuthenticator {
for (AuthMethod authMethod : auth.methods()) {
switch (authMethod) {
// App Engine internal authentication, using the queue name header
case INTERNAL:
// checkAuthConfig will have insured that the user policy is not USER.
{
case INTERNAL: {
// checkAuthConfig will have insured that the user policy is not USER.
AuthResult authResult = appEngineInternalAuthenticationMechanism.authenticate(req);
if (authResult.isAuthenticated()) {
logger.atInfo().log("Authenticated via internal auth: %s", authResult);

View file

@ -185,7 +185,7 @@ final class RegistrarContactCommand extends MutatingCommand {
case CREATE:
stageEntityChange(null, createContact(registrar));
if ((visibleInDomainWhoisAsAbuse != null) && visibleInDomainWhoisAsAbuse) {
unsetOtherWhoisAbuseFlags(contacts, null /* emailAddressNotToChange */ );
unsetOtherWhoisAbuseFlags(contacts, null);
}
break;
case UPDATE:

View file

@ -51,7 +51,7 @@ final class UpdateServerLocksCommand extends MutatingEppToolCommand {
names = {"-a", "--apply"},
description = "Comma-delimited set of locks to apply (or 'all'). "
+ "Valid locks: serverDeleteProhibited, serverHold, serverRenewProhibited, "
+ "serverTransferProhibited, serverUpdateProhibited" )
+ "serverTransferProhibited, serverUpdateProhibited")
private List<String> locksToApply = new ArrayList<>();
@Parameter(

View file

@ -57,7 +57,7 @@ public class KillAllCommitLogsAction implements Runnable {
@Override
public void run() {
checkArgument( // safety
checkArgument(
RegistryEnvironment.get() == RegistryEnvironment.CRASH
|| RegistryEnvironment.get() == RegistryEnvironment.UNITTEST,
"DO NOT RUN ANYWHERE ELSE EXCEPT CRASH OR TESTS.");

View file

@ -53,7 +53,7 @@ public class KillAllEppResourcesAction implements Runnable {
@Override
public void run() {
checkArgument( // safety
checkArgument(
RegistryEnvironment.get() == RegistryEnvironment.CRASH
|| RegistryEnvironment.get() == RegistryEnvironment.UNITTEST,
"DO NOT RUN ANYWHERE ELSE EXCEPT CRASH OR TESTS.");