Skip to content

Commit 77feb57

Browse files
committed
Tiny cleanup to use class's field and add comment
1 parent a7d2743 commit 77feb57

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexerParallelizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ private void createLazyHistoryRenamedExecutor() {
250250
Executors.newFixedThreadPool(env.getHistoryRenamedParallelism()));
251251
}
252252

253-
private static class CtagsObjectFactory implements ObjectFactory<Ctags> {
253+
private class CtagsObjectFactory implements ObjectFactory<Ctags> {
254254

255255
public Ctags createNew() {
256-
return CtagsUtil.newInstance(RuntimeEnvironment.getInstance());
256+
return CtagsUtil.newInstance(env);
257257
}
258258
}
259259
}

opengrok-indexer/src/test/java/org/opengrok/indexer/util/CtagsUtilTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333

3434
import java.util.List;
3535

36+
/**
37+
* Represents a container for tests of {@link CtagsUtil}.
38+
*/
3639
@ConditionalRun(CtagsInstalled.class)
3740
public class CtagsUtilTest {
3841

0 commit comments

Comments
 (0)