Format all Java files with google-java-format
Change-Id: Ie55d9209cf58d6c267e66b3cea103f6753acc222
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/CompleteProjectImportCommand.java b/src/main/java/com/googlesource/gerrit/plugins/importer/CompleteProjectImportCommand.java
index 99faa68..161c3bc 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/CompleteProjectImportCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/CompleteProjectImportCommand.java
@@ -28,11 +28,10 @@
class CompleteProjectImportCommand extends SshCommand {
@Argument(
- index = 0,
- required = true,
- metaVar = "NAME",
- usage = "name of the project in target system"
- )
+ index = 0,
+ required = true,
+ metaVar = "NAME",
+ usage = "name of the project in target system")
private String project;
@Inject private CompleteProjectImport completeProjectImport;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/GroupCommand.java b/src/main/java/com/googlesource/gerrit/plugins/importer/GroupCommand.java
index be42c1c..870ad9b 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/GroupCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/GroupCommand.java
@@ -37,52 +37,46 @@
@CommandMetaData(name = "group", description = "Imports a group")
public class GroupCommand extends SshCommand {
@Option(
- name = "--from",
- aliases = {"-f"},
- required = true,
- metaVar = "URL",
- usage = "URL of the remote system from where the group is imported from"
- )
+ name = "--from",
+ aliases = {"-f"},
+ required = true,
+ metaVar = "URL",
+ usage = "URL of the remote system from where the group is imported from")
private String url;
@Option(
- name = "--user",
- aliases = {"-u"},
- required = true,
- metaVar = "NAME",
- usage = "user on remote system"
- )
+ name = "--user",
+ aliases = {"-u"},
+ required = true,
+ metaVar = "NAME",
+ usage = "user on remote system")
private String user;
@Option(
- name = "--pass",
- aliases = {"-p"},
- required = true,
- metaVar = "-|PASS",
- usage = "password of remote user"
- )
+ name = "--pass",
+ aliases = {"-p"},
+ required = true,
+ metaVar = "-|PASS",
+ usage = "password of remote user")
private String pass;
@Option(
- name = "--import-owner-group",
- aliases = {"-o"},
- usage = "whether missing owner groups should be imported automatically"
- )
+ name = "--import-owner-group",
+ aliases = {"-o"},
+ usage = "whether missing owner groups should be imported automatically")
private boolean importOwnerGroup;
@Option(
- name = "--import-included-groups",
- aliases = {"-i"},
- usage = "whether missing included groups should be imported automatically"
- )
+ name = "--import-included-groups",
+ aliases = {"-i"},
+ usage = "whether missing included groups should be imported automatically")
private boolean importIncludedGroups;
@Argument(
- index = 0,
- required = true,
- metaVar = "NAME",
- usage = "name of the group to be imported"
- )
+ index = 0,
+ required = true,
+ metaVar = "NAME",
+ usage = "name of the group to be imported")
private String group;
@Inject private ImportGroup.Factory importGroupFactory;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportedProjects.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportedProjects.java
index be6f0c0..2e6379c 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportedProjects.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportedProjects.java
@@ -37,10 +37,9 @@
private final ProjectsCollection projects;
@Option(
- name = "--match",
- metaVar = "MATCH",
- usage = "List only projects containing this substring, case insensitive"
- )
+ name = "--match",
+ metaVar = "MATCH",
+ usage = "List only projects containing this substring, case insensitive")
public void setMatch(String match) {
this.match = match.toLowerCase(Locale.ENGLISH);
}
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportsCommand.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportsCommand.java
index c4d1c1b..d242cf4 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportsCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ListImportsCommand.java
@@ -31,19 +31,17 @@
class ListProjectImportsCommand extends SshCommand {
@Option(
- name = "--verbose",
- aliases = {"-v"},
- required = false,
- usage = "Print detailed info for each project import"
- )
+ name = "--verbose",
+ aliases = {"-v"},
+ required = false,
+ usage = "Print detailed info for each project import")
private boolean verbose;
@Argument(
- index = 0,
- required = false,
- metaVar = "MATCH",
- usage = "List only projects containing this substring, case insensitive"
- )
+ index = 0,
+ required = false,
+ metaVar = "MATCH",
+ usage = "List only projects containing this substring, case insensitive")
private String match;
@Inject private ListImportedProjects list;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ProjectCommand.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ProjectCommand.java
index b9b539c..f69eb9d 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/ProjectCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ProjectCommand.java
@@ -39,59 +39,53 @@
@CommandMetaData(name = "project", description = "Imports a project")
public class ProjectCommand extends SshCommand {
@Option(
- name = "--from",
- aliases = {"-f"},
- required = true,
- metaVar = "URL",
- usage = "URL of the remote system from where the project should be imported"
- )
+ name = "--from",
+ aliases = {"-f"},
+ required = true,
+ metaVar = "URL",
+ usage = "URL of the remote system from where the project should be imported")
private String url;
@Option(
- name = "--name",
- required = false,
- metaVar = "NAME",
- usage =
- "name of project in source system (if not specified it is"
- + " assumed to be the same name as in the target system)"
- )
+ name = "--name",
+ required = false,
+ metaVar = "NAME",
+ usage =
+ "name of project in source system (if not specified it is"
+ + " assumed to be the same name as in the target system)")
private String name;
@Option(
- name = "--user",
- aliases = {"-u"},
- required = true,
- metaVar = "NAME",
- usage = "user on remote system"
- )
+ name = "--user",
+ aliases = {"-u"},
+ required = true,
+ metaVar = "NAME",
+ usage = "user on remote system")
private String user;
@Option(
- name = "--pass",
- aliases = {"-p"},
- required = true,
- metaVar = "-|PASS",
- usage = "password of remote user"
- )
+ name = "--pass",
+ aliases = {"-p"},
+ required = true,
+ metaVar = "-|PASS",
+ usage = "password of remote user")
private String pass;
@Option(
- name = "--parent",
- required = false,
- metaVar = "NAME",
- usage = "name of parent project in target system"
- )
+ name = "--parent",
+ required = false,
+ metaVar = "NAME",
+ usage = "name of parent project in target system")
private String parent;
@Option(name = "--quiet", usage = "suppress progress messages")
private boolean quiet;
@Argument(
- index = 0,
- required = true,
- metaVar = "NAME",
- usage = "name of the project in target system"
- )
+ index = 0,
+ required = true,
+ metaVar = "NAME",
+ usage = "name of the project in target system")
private String project;
@Inject private ImportProject.Factory importProjectFactory;
diff --git a/src/main/java/com/googlesource/gerrit/plugins/importer/ResumeProjectCommand.java b/src/main/java/com/googlesource/gerrit/plugins/importer/ResumeProjectCommand.java
index 301600f..c4fe6b3 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/importer/ResumeProjectCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/importer/ResumeProjectCommand.java
@@ -27,21 +27,19 @@
public class ResumeProjectCommand extends SshCommand {
@Option(
- name = "--user",
- aliases = {"-u"},
- required = true,
- metaVar = "NAME",
- usage = "user on remote system"
- )
+ name = "--user",
+ aliases = {"-u"},
+ required = true,
+ metaVar = "NAME",
+ usage = "user on remote system")
private String user;
@Option(
- name = "--pass",
- aliases = {"-p"},
- required = true,
- metaVar = "-|PASS",
- usage = "password of remote user"
- )
+ name = "--pass",
+ aliases = {"-p"},
+ required = true,
+ metaVar = "-|PASS",
+ usage = "password of remote user")
private String pass;
@Option(name = "--force", usage = "Whether the resume should be done forcefully.")
@@ -51,11 +49,10 @@
private boolean quiet;
@Argument(
- index = 0,
- required = true,
- metaVar = "NAME",
- usage = "name of the project in target system"
- )
+ index = 0,
+ required = true,
+ metaVar = "NAME",
+ usage = "name of the project in target system")
private String project;
@Inject private ResumeProjectImport resume;