Specify Map initialCapacity.

This commit is contained in:
Sutra Zhou committed 2018-05-29 15:04:47 +08:00
1 parent e2777194da
commit aad62d7739
1 file changed
+1 -1
@@ -21,7 +21,7 @@ final class CustomMessageAdapters {
final NotifyTuple tuple = customMessage.getTuple();
final String msgType = tuple.getMessageType();
final Map<String, Object> params = new HashMap<String, Object>();
final Map<String, Object> params = new HashMap<String, Object>(3);
params.put("touser", customMessage.getToUser());
params.put("msgtype", msgType);
params.put(msgType, customMessage.getTuple());