From 924a022b29ac73ca973352c1308640473b95f94a Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Fri, 26 May 2023 13:56:23 -0700 Subject: [PATCH] Address warnings. --- buildSrc/src/main/java/lfformat/LfFormatStep.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/buildSrc/src/main/java/lfformat/LfFormatStep.java b/buildSrc/src/main/java/lfformat/LfFormatStep.java index ca0b780383..babd3d8af1 100644 --- a/buildSrc/src/main/java/lfformat/LfFormatStep.java +++ b/buildSrc/src/main/java/lfformat/LfFormatStep.java @@ -67,7 +67,7 @@ private Step() throws IOException { @Override public String format( @SuppressWarnings("NullableProblems") String rawUnix, - @SuppressWarnings("NullableProblems") File file) + File file) throws IOException, InterruptedException { StringBuilder output = new StringBuilder(); try { @@ -119,15 +119,6 @@ private void initializeFormatter() throws IOException { error = new BufferedReader(new InputStreamReader(formatter.getErrorStream())); } - // /** Run the formatter on the given file and return the resulting process handle. */ - // private Process runFormatter(File file) throws IOException { - // // It looks silly to invoke Java from Java, but it is necessary in - // // order to break the circularity of needing the program to be built - // // in order for it to be built. - // var formatter = getFormatter(); - // return formatter; - // } - @SuppressWarnings("NullableProblems") @Override public String getName() {