Skip to content

Commit 23fa0dd

Browse files
committed
improve javadoc
1 parent e2f7528 commit 23fa0dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/util/LazilyInstantiate.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ private LazilyInstantiate(Supplier<T> supplier) {
9595
this.current = this::swapper;
9696
}
9797

98-
//swaps the itself out for a supplier of an instantiated object
98+
/**
99+
* Swaps itself out for a supplier of an instantiated object.
100+
*/
99101
private synchronized T swapper() {
100102
if (!(current instanceof Factory)) {
101103
T obj = supplier.get();

0 commit comments

Comments
 (0)