Skip to content

Commit

Permalink
Merge pull request #1004 from xuwei-k/SafeLazy-raw-type-warnings
Browse files Browse the repository at this point in the history
fix `raw type` warnings
  • Loading branch information
eed3si9n authored Nov 15, 2021
2 parents a9e84b8 + a8a3c9a commit 987dfc4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ private static final class Impl<T> extends xsbti.api.AbstractLazy<T> {
private Thunky<T> thunky;

Impl(Supplier<T> thunk) {
this.thunky = new Thunky(thunk, null);
this.thunky = new Thunky<>(thunk, null);
}

public T get() {
Thunky<T> t = thunky;
if (t.result == null) {
T r = t.thunk.get();
t = new Thunky(null, r);
t = new Thunky<>(null, r);
thunky = t;
}
return t.result;
Expand Down

0 comments on commit 987dfc4

Please sign in to comment.