Reformat with GJF 1.24.0
Change-Id: I80f0e8f67b0a6d0586eb9fb23ee0a2a29352356e
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
index 19d5b71..b563109 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProject.java
@@ -70,8 +70,13 @@
@Override
public Response<?> apply(ProjectResource resource, Input input)
- throws IOException, AuthException, BadRequestException, ResourceConflictException,
- InterruptedException, ConfigInvalidException, RenameRevertException {
+ throws IOException,
+ AuthException,
+ BadRequestException,
+ ResourceConflictException,
+ InterruptedException,
+ ConfigInvalidException,
+ RenameRevertException {
Optional<ProgressMonitor> optionalProgressMonitor = Optional.empty();
assertCanRename(resource, input, optionalProgressMonitor);
List<Id> changeIds = getChanges(resource, optionalProgressMonitor);
@@ -92,8 +97,13 @@
Optional<ProgressMonitor> optionalProgressMonitor,
boolean continueRename,
List<Change.Id> changeIds)
- throws ResourceConflictException, BadRequestException, AuthException, IOException,
- ConfigInvalidException, RenameRevertException, InterruptedException {
+ throws ResourceConflictException,
+ BadRequestException,
+ AuthException,
+ IOException,
+ ConfigInvalidException,
+ RenameRevertException,
+ InterruptedException {
if (!isReplica) {
if (continueRename) {
doRename(Optional.ofNullable(changeIds), resource, input, optionalProgressMonitor);
@@ -115,7 +125,8 @@
static final int WARNING_LIMIT = 5000;
static final String CANCELLATION_MSG =
- "Rename cancelled due to number of changes exceeding warning limit and user's will to not continue";
+ "Rename cancelled due to number of changes exceeding warning limit and user's will to not"
+ + " continue";
private static final Logger log = LoggerFactory.getLogger(RenameProject.class);
private static final String CACHE_NAME = "changeid_project";
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProjectFilter.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProjectFilter.java
index f733885..649c1ac 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProjectFilter.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RenameProjectFilter.java
@@ -111,8 +111,12 @@
}
private Response<String> renameProject(HttpServletRequest httpRequest)
- throws RestApiException, IOException, PermissionBackendException, ConfigInvalidException,
- RenameRevertException, InterruptedException {
+ throws RestApiException,
+ IOException,
+ PermissionBackendException,
+ ConfigInvalidException,
+ RenameRevertException,
+ InterruptedException {
RenameProject.Input input = readJson(httpRequest, TypeLiteral.get(RenameProject.Input.class));
IdString id = getProjectName(httpRequest).get();
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RevertRenameProject.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RevertRenameProject.java
index 484492a..4dbf637 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/RevertRenameProject.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/RevertRenameProject.java
@@ -84,7 +84,8 @@
oldProjectKey.get());
} catch (RenameRevertException | ConfigInvalidException e) {
log.error(
- "Failed to revert changes in DB for project {}. Secondary indexes not reverted. Exception caught: {}",
+ "Failed to revert changes in DB for project {}. Secondary indexes not reverted."
+ + " Exception caught: {}",
oldProjectKey.get(),
e.toString());
throw e;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java
index 86a3000..f586d57 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/SshModule.java
@@ -16,8 +16,8 @@
import com.google.gerrit.extensions.annotations.PluginName;
import com.google.gerrit.sshd.SingleCommandPluginModule;
-import com.google.inject.binder.LinkedBindingBuilder;
import com.google.inject.Inject;
+import com.google.inject.binder.LinkedBindingBuilder;
import org.apache.sshd.server.command.Command;
public class SshModule extends SingleCommandPluginModule {
diff --git a/src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java b/src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
index 7afbf11..d2c5b18 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/renameproject/database/DatabaseRenameHandler.java
@@ -98,14 +98,16 @@
updateWatchEntries(newProjectKey);
} catch (Exception e) {
log.error(
- "Failed to update changes in noteDb for project {}, exception caught: {}. Rolling back the operation.",
+ "Failed to update changes in noteDb for project {}, exception caught: {}. Rolling back"
+ + " the operation.",
oldProjectKey.get(),
e.toString());
try {
updateWatchEntries(newProjectKey);
} catch (Exception revertEx) {
log.error(
- "Failed to rollback changes in noteDb from project {} to project {}, exception caught: {}",
+ "Failed to rollback changes in noteDb from project {} to project {}, exception caught:"
+ + " {}",
newProjectKey.get(),
oldProjectKey.get(),
revertEx.toString());
@@ -149,7 +151,8 @@
update.deleteProjectWatches(oldProjectWatches).build());
} catch (ConfigInvalidException e) {
log.error(
- "Updating watch entry for user {} in project {} failed. Watch config found invalid.",
+ "Updating watch entry for user {} in project {} failed. Watch config found"
+ + " invalid.",
a.userName(),
newProjectKey.get(),
e);
diff --git a/src/test/java/com/googlesource/gerrit/plugins/renameproject/RenameIT.java b/src/test/java/com/googlesource/gerrit/plugins/renameproject/RenameIT.java
index 28fe80b..60bff28 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/renameproject/RenameIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/renameproject/RenameIT.java
@@ -24,6 +24,7 @@
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
+
import com.google.common.base.Joiner;
import com.google.common.cache.Cache;
import com.google.common.net.MediaType;