Skip to content

Commit e861a90

Browse files
committed
Make static class
1 parent 6e09019 commit e861a90

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/BazaarRepository.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import java.io.File;
2727
import java.io.IOException;
28-
import java.io.InputStream;
2928
import java.util.ArrayList;
3029
import java.util.List;
3130
import java.util.TreeSet;
@@ -106,9 +105,7 @@ boolean getHistoryGet(
106105
ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK);
107106
String[] argv = {RepoCommand, "cat", "-r", rev, filename};
108107
process = Runtime.getRuntime().exec(argv, null, directory);
109-
try (InputStream in = process.getInputStream()) {
110-
copyBytes(sink, in);
111-
}
108+
copyBytes(sink, process.getInputStream());
112109
return true;
113110
} catch (Exception exp) {
114111
LOGGER.log(Level.SEVERE,

opengrok-indexer/src/main/java/org/opengrok/indexer/history/Repository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ static int copyBytes(BufferSink sink, InputStream in) throws IOException {
608608
return iterations;
609609
}
610610

611-
class HistoryRevResult {
611+
static class HistoryRevResult {
612612
public boolean success;
613613
public int iterations;
614614
}

0 commit comments

Comments
 (0)