This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
The following commit(s) were added to refs/heads/master by this push:
new 2db07c21 [PERF] ContentTypeFieldLenientImpl: clear is not needed (#86)
2db07c21 is described below
commit 2db07c2135d0222777868ca1be67b7303d0e4aae
Author: Benoit TELLIER <[email protected]>
AuthorDate: Mon Jun 5 09:01:04 2023 +0700
[PERF] ContentTypeFieldLenientImpl: clear is not needed (#86)
---
.../java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java
b/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java
index 7b923d7b..79e704b8 100644
---
a/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java
+++
b/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java
@@ -137,7 +137,7 @@ public class ContentTypeFieldLenientImpl extends
AbstractField implements Conten
mimeType = main;
mediaType = type;
subType = subtype;
- parameters.clear();
+
for (NameValuePair nmp: body.getParams()) {
String name = nmp.getName().toLowerCase(Locale.US);
parameters.put(name, nmp.getValue());
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]