@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }
@Override public T get() throws E { UnsafeValue<T, E> result = value; if (result == null) { synchronized (lock) { result = value; //noinspection ConstantConditions if (result == null) { try { result = Values.unsafe(delegate.get()); } catch (final Throwable e) { //noinspection unchecked result = Values.throwing((E) e); } value = result; } } } return result.get(); }