refactor: Use diamond operator

This commit is contained in:
Kyle Scully
2021-10-12 23:06:39 -07:00
committed by GitHub
parent fddb2f7a18
commit 0bcba32ea4
4 changed files with 12 additions and 12 deletions

View File

@@ -79,7 +79,7 @@ public abstract class AbstractWxMaRedisConfig extends WxMaDefaultConfigImpl {
private void setValueToRedis(String key, long expiresTime, String value) {
try (Jedis jedis = getConfiguredJedis()) {
Map<String, String> hash = new HashMap<String, String>();
Map<String, String> hash = new HashMap<>();
hash.put(HASH_VALUE_FIELD, value);
hash.put(HASH_EXPIRE_FIELD, String.valueOf(expiresTime));
jedis.hmset(getRedisKey(key), hash);