MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / get

Method get

java/src/org/openqa/selenium/concurrent/Lazy.java:39–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 public T get() {
40 if (value == null) {
41 synchronized (lock) {
42 if (value == null) {
43 try {
44 value = supplier.get();
45 } catch (RuntimeException e) {
46 throw e;
47 } catch (Exception e) {
48 throw new InitializationException(e);
49 }
50 }
51 }
52 }
53 return requireNonNull(value);
54 }
55
56 public static <T> Lazy<T> lazy(Supplier<T> supplier) {
57 return new Lazy<>(supplier);

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected