Specify Map initialCapacity.
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user