Skip to content

Conversation

IrvingOS
Copy link
Contributor

Change the cast target to WeakEntry in WeakCache.class.
Change the cast target to SoftEntry in SoftCache.class.
Because I don't think it's necessary to convert delegate.get(key) to WeakReference or SoftReference and then suppress the warning with @SuppressWarnings("unchecked").
If my idea is wrong, please point it out.
Thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.325% when pulling 87924a4 on IrvingOS:pr into 2d76f4d on mybatis:master.

@hazendaz
Copy link
Member

@IrvingOS If you can, please rebase this instead of merging into it so its cleaner at the onset. The approach seems fine but need others to comment from the team.

@IrvingOS
Copy link
Contributor Author

Yeah. I'll clean up the commits and reissue the pull request.

@IrvingOS IrvingOS closed this Aug 14, 2022
@IrvingOS IrvingOS deleted the pr branch August 14, 2022 02:39
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 this pull request may close these issues.

3 participants