Polishing

Closes gh-24543
This commit is contained in:
ZhangT
2020-02-18 00:33:39 +08:00
committed by GitHub
parent 9e7ab4d308
commit 6add7b4dec
4 changed files with 6 additions and 23 deletions

View File

@@ -85,8 +85,7 @@ public class ConcurrentMapCacheTests
assertThat(serializeCache.isStoreByValue()).isTrue();
Object key = createRandomKey();
List<String> content = new ArrayList<>();
content.addAll(Arrays.asList("one", "two", "three"));
List<String> content = new ArrayList<>(Arrays.asList("one", "two", "three"));
serializeCache.put(key, content);
content.remove(0);
List<String> entry = (List<String>) serializeCache.get(key).get();