Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
anton committed Mar 25, 2020
1 parent a7bb44e commit 1f001e2
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package ru.art.core.lazy;

import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import static java.util.Objects.nonNull;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.ReentrantLock;
import java.util.function.Supplier;
import lombok.*;
import static java.util.Objects.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
import java.util.function.*;

@RequiredArgsConstructor
@AllArgsConstructor
public class LazyLoadingValue<T> {
private final ReentrantLock lock = new ReentrantLock();
private final Supplier<T> loader;
private final AtomicReference<T> value = new AtomicReference<>();
private final Supplier<T> loader;

public T value() {
T value;
Expand Down

0 comments on commit 1f001e2

Please sign in to comment.