Move the overloads of CommandLine#concat() next to each other.
RELNOTES: None.
@@ -104,18 +104,6 @@ public abstract class CommandLine {
}
}
- /**
- * Returns a {@link CommandLine} that is constructed by prepending the {@code executableArgs} to
- * {@code commandLine}.
- */
- public static CommandLine concat(
- final ImmutableList<String> executableArgs, final CommandLine commandLine) {
- if (executableArgs.isEmpty()) {
- return commandLine;
- }
- return new PrefixedCommandLine(executableArgs, commandLine);
- }
-
@AutoCodec
@VisibleForSerialization
static class SuffixedCommandLine extends CommandLine {
@@ -140,6 +128,18 @@ public abstract class CommandLine {
}
}
+ /**
+ * Returns a {@link CommandLine} that is constructed by prepending the {@code executableArgs} to
+ * {@code commandLine}.
+ */
+ public static CommandLine concat(
+ final ImmutableList<String> executableArgs, final CommandLine commandLine) {
+ if (executableArgs.isEmpty()) {
+ return commandLine;
+ }
+ return new PrefixedCommandLine(executableArgs, commandLine);
+ }
+
/**
* Returns a {@link CommandLine} that is constructed by appending the {@code args} to {@code
* commandLine}.
