Skip to content

Commit

Permalink
a reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 2, 2021
1 parent e42c93b commit 0ecba1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private void launch(String received, String approved)
throw ObjectUtils.throwAsError(e);
}
}
protected void processOutput(String received, Process process) {
protected void processOutput(String received, Process process)
{
}
private void preventProcessFromClosing(ProcessBuilder builder)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

import java.io.File;

public class CyberDojoReporter extends GenericDiffReporter {
private static DiffInfo info = new DiffInfo("/usr/bin/diff",
GenericDiffReporter.TEXT_FILE_EXTENSIONS);
public class CyberDojoReporter extends GenericDiffReporter
{
private static DiffInfo info = new DiffInfo("/usr/bin/diff",
GenericDiffReporter.TEXT_FILE_EXTENSIONS);
public static final CyberDojoReporter INSTANCE = new CyberDojoReporter();

public CyberDojoReporter()
{
super(info);
}

protected void processOutput(String received, Process process) {
protected void processOutput(String received, Process process)
{
String extensionWithDot = FileUtils.getExtensionWithDot(received);
String diffFile = received.replace(".received" + extensionWithDot, ".diff");
FileUtils.writeFile(new File(diffFile), process.getInputStream());
Expand Down

0 comments on commit 0ecba1c

Please sign in to comment.