in src/main/java/com/aliyun/tea/utils/AttributeMap.java [37:44]
public AttributeMap copy() {
Map<Key<?>, Object> map = new HashMap<>();
for (Map.Entry<Key<?>, Object> entry : attributes.entrySet()) {
entry.getKey().validateValue(entry.getValue());
map.put(entry.getKey(), entry.getValue());
}
return new AttributeMap(map);
}