Skip to content

Commit 5afb83e

Browse files
committed
CachedSupplier doesn’t need to be a Supplier
1 parent d0df827 commit 5afb83e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/truffleruby/collections/CachedSupplier.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved. This
2+
* Copyright (c) 2020, 2022 Oracle and/or its affiliates. All rights reserved. This
33
* code is released under a tri EPL/GPL/LGPL license. You can use it,
44
* redistribute it and/or modify it under the terms of the:
55
*
@@ -11,7 +11,7 @@
1111

1212
import java.util.function.Supplier;
1313

14-
public class CachedSupplier<T> implements Supplier<T> {
14+
public class CachedSupplier<T> {
1515

1616
private volatile T value = null;
1717
private Supplier<T> supplier;
@@ -20,7 +20,6 @@ public CachedSupplier(Supplier<T> supplier) {
2020
this.supplier = supplier;
2121
}
2222

23-
@Override
2423
public T get() {
2524
if (isAvailable()) {
2625
return value;

0 commit comments

Comments
 (0)