XiaoyiPeng opened a new pull request #3534:
URL: https://github.com/apache/rocketmq/pull/3534
**Make sure set the target branch to `develop`**
## What is the purpose of the change
for issue #3533
## Brief changelog
Specify the initialCapacity when initializing a `HashMap `as a local
variable that will not escape,
just like the code in class
`org.apache.rocketmq.broker.filter.MessageEvaluationContext#keyValues` :
```java
public Map<String, Object> keyValues() {
if (properties == null) {
return null;
}
Map<String, Object> copy = new HashMap<String,
Object>(properties.size(), 1);
for (String key : properties.keySet()) {
copy.put(key, properties.get(key));
}
return copy;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]