Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimize]add generics for CacheBuilder #7487

Closed
onewe opened this issue Dec 23, 2021 · 0 comments · Fixed by #7490
Closed

[Optimize]add generics for CacheBuilder #7487

onewe opened this issue Dec 23, 2021 · 0 comments · Fixed by #7490

Comments

@onewe
Copy link
Collaborator

onewe commented Dec 23, 2021

I think some methods of the CacheBuilder need to add the generics.

for example:

// CacheBuilder#builder:51
    public static CacheBuilder builder() {
        return new CacheBuilder();
    }

and here:

// CacheBuilder#builder:58
 public CacheBuilder expireNanos(long duration, TimeUnit unit) {
        checkExpireNanos(duration, unit);
        this.expireNanos = unit.toNanos(duration);
        return this;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant