diff --git a/lib/src/main/java/com/diffplug/spotless/protobuf/BufStep.java b/lib/src/main/java/com/diffplug/spotless/protobuf/BufStep.java index acddff85cf..a5a6a6cdef 100644 --- a/lib/src/main/java/com/diffplug/spotless/protobuf/BufStep.java +++ b/lib/src/main/java/com/diffplug/spotless/protobuf/BufStep.java @@ -65,9 +65,9 @@ public FormatterStep create() { private State createState() { String instructions = "https://docs.buf.build/installation"; ForeignExe exeAbsPath = ForeignExe.nameAndVersion("buf", version) - .pathToExe(pathToExe) - .versionRegex(Pattern.compile("(\\S*)")) - .fixCantFind("Try following the instructions at " + instructions + ", or else tell Spotless where it is with {@code buf().pathToExe('path/to/executable')}"); + .pathToExe(pathToExe) + .versionRegex(Pattern.compile("(\\S*)")) + .fixCantFind("Try following the instructions at " + instructions + ", or else tell Spotless where it is with {@code buf().pathToExe('path/to/executable')}"); return new State(this, exeAbsPath); } @@ -88,9 +88,9 @@ static class State implements Serializable { String format(ProcessRunner runner, String input, File file) throws IOException, InterruptedException { if (args == null) { args = Arrays.asList( - exe.confirmVersionAndGetAbsolutePath(), - "format", - file.getAbsolutePath()); + exe.confirmVersionAndGetAbsolutePath(), + "format", + file.getAbsolutePath()); } return runner.exec(input.getBytes(StandardCharsets.UTF_8), args).assertExitZero(StandardCharsets.UTF_8); }