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

Update JetCacheExecutor.java and Update AbstractExternalCacheTest.java #811

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

xiezheng-XD
Copy link
Contributor

1.对于/jetcache-core/src/main/java/com/alicp/jetcache/support/JetCacheExecutor.java,做了以下两点改动:
(1)使用了AtomicInteger以确保threadCount的线程安全性
(2)在创建新的线程时使用了getAndIncrement()方法来递增计数
2.对于/jetcache-test/src/main/java/com/alicp/jetcache/test/external/AbstractExternalCacheTest.java,修改了assertNull()的错误使用为assertEquals()

做了以下两点改动:
1.使用了AtomicInteger以确保threadCount的线程安全性
2.在创建新的线程时使用了getAndIncrement()方法来递增计数
修改assertNull()使用错误
@areyouok areyouok merged commit 0482d68 into alibaba:master Aug 31, 2023
2 checks passed
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.

None yet

2 participants