Move the overloads of CommandLine#concat() next to each other.
RELNOTES: None.
PiperOrigin-RevId: 217836884
diff --git a/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java b/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java
index 114e7b0..b87e5a6 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/CommandLine.java
@@ -104,18 +104,6 @@
}
}
- /**
- * 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 {
@@ -141,6 +129,18 @@
}
/**
+ * 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}.
*/