Reformat all Java files with google-java-format 1.6

Change-Id: Iedba3f24ac00e2186e3e0688fabea817ddf43739
This commit is contained in:
David Pursehouse
2018-06-06 10:26:51 +09:00
parent 399e9aa2aa
commit af864a0aad
193 changed files with 1331 additions and 1984 deletions

View File

@@ -226,10 +226,8 @@ public class CommitValidators {
messages.addAll(commitValidator.onCommitReceived(receiveEvent));
}
} catch (CommitValidationException e) {
logger
.atFine()
.withCause(e)
.log("CommitValidationException occurred: %s", e.getFullMessage());
logger.atFine().withCause(e).log(
"CommitValidationException occurred: %s", e.getFullMessage());
// Keep the old messages (and their order) in case of an exception
messages.addAll(e.getMessages());
throw new CommitValidationException(e.getMessage(), messages);
@@ -445,14 +443,11 @@ public class CommitValidators {
throw new ConfigInvalidException("invalid project configuration");
}
} catch (ConfigInvalidException | IOException e) {
logger
.atSevere()
.withCause(e)
.log(
"User %s tried to push an invalid project configuration %s for project %s",
user.getLoggableName(),
receiveEvent.command.getNewId().name(),
receiveEvent.project.getName());
logger.atSevere().withCause(e).log(
"User %s tried to push an invalid project configuration %s for project %s",
user.getLoggableName(),
receiveEvent.command.getNewId().name(),
receiveEvent.project.getName());
throw new CommitValidationException("invalid project configuration", messages);
}
}