优化代码

This commit is contained in:
zhouhao
2017-05-12 23:51:36 +08:00
parent 6ddbd65829
commit d5f9facfad

View File

@@ -49,7 +49,7 @@ public class RedissonLockTest {
Lock readLock = readWriteLock.readLock();
Lock writeLock = readWriteLock.writeLock();
Consumer<Long>[] consumer = new Consumer[1];
Consumer[] consumer = new Consumer[1];
consumer[0] = System.out::println;
for (int i = 0; i < 10; i++) {
new Thread(() -> {