We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2f7528 commit 23fa0ddCopy full SHA for 23fa0dd
opengrok-indexer/src/main/java/org/opengrok/indexer/util/LazilyInstantiate.java
@@ -95,7 +95,9 @@ private LazilyInstantiate(Supplier<T> supplier) {
95
this.current = this::swapper;
96
}
97
98
- //swaps the itself out for a supplier of an instantiated object
+ /**
99
+ * Swaps itself out for a supplier of an instantiated object.
100
+ */
101
private synchronized T swapper() {
102
if (!(current instanceof Factory)) {
103
T obj = supplier.get();
0 commit comments