From 19f68d6763969e289591a82c353b3638f1c40210 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Tue, 8 Aug 2023 09:11:17 -0700 Subject: [PATCH] spotlessApply --- .../java/com/diffplug/spotless/protobuf/BufStep.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); }