This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-email.git
commit 8a249eaa8ab29fbaf6ef5b0ec41b4c09590b62a6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 17 09:04:44 2023 -0500 Move new class --- src/changes/changes.xml | 2 +- .../org/apache/commons/mail/{ => activation}/InputStreamDataSource.java | 2 +- src/main/java/org/apache/commons/mail/util/MimeMessageParser.java | 2 +- src/test/java/org/apache/commons/mail/InputStreamDataSourceTest.java | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 7860475..6f8db36 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -45,7 +45,7 @@ <action type="add" due-to="Dependabot" dev="ggregory">Add github/codeql-action #75.</action> <action type="add" due-to="Gary Gregory" dev="ggregory">Add Maven plugin JapiCmp and remove Clirr.</action> <action issue="EMAIL-176" type="add" dev="pschumacher">Add Automatic-Module-Name MANIFEST entry for Java 9 compatibility.</action> - <action issue="EMAIL-207" type="add" dev="ggregory" due-to="Lee Jaeheon, Gary Gregory">Add org.apache.commons.mail.InputStreamDataSource.</action> + <action issue="EMAIL-207" type="add" dev="ggregory" due-to="Lee Jaeheon, Gary Gregory">Add InputStreamDataSource.</action> <action issue="EMAIL-207" type="add" dev="ggregory" due-to="Lee Jaeheon, Gary Gregory">Don't waste memory in MimeMessageParser#createDataSource().</action> <action type="add" due-to="Gary Gregory" dev="ggregory">Add EmailConstants.SOCKET_TIMEOUT and deprecate SOCKET_TIMEOUT_MS.</action> <action type="add" due-to="Gary Gregory" dev="ggregory">Add Email.setSocketConnectionTimeout(Duration) and deprecate setSocketConnectionTimeout(int).</action> diff --git a/src/main/java/org/apache/commons/mail/InputStreamDataSource.java b/src/main/java/org/apache/commons/mail/activation/InputStreamDataSource.java similarity index 98% rename from src/main/java/org/apache/commons/mail/InputStreamDataSource.java rename to src/main/java/org/apache/commons/mail/activation/InputStreamDataSource.java index d16fed4..fddf4d5 100644 --- a/src/main/java/org/apache/commons/mail/InputStreamDataSource.java +++ b/src/main/java/org/apache/commons/mail/activation/InputStreamDataSource.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.commons.mail; +package org.apache.commons.mail.activation; import java.io.IOException; import java.io.InputStream; diff --git a/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java b/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java index eeace55..c9567a7 100644 --- a/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java +++ b/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java @@ -40,7 +40,7 @@ import javax.mail.internet.MimePart; import javax.mail.internet.MimeUtility; import javax.mail.internet.ParseException; -import org.apache.commons.mail.InputStreamDataSource; +import org.apache.commons.mail.activation.InputStreamDataSource; /** * Parses a MimeMessage and stores the individual parts such a plain text, HTML text and attachments. diff --git a/src/test/java/org/apache/commons/mail/InputStreamDataSourceTest.java b/src/test/java/org/apache/commons/mail/InputStreamDataSourceTest.java index 416b9d5..939b99f 100644 --- a/src/test/java/org/apache/commons/mail/InputStreamDataSourceTest.java +++ b/src/test/java/org/apache/commons/mail/InputStreamDataSourceTest.java @@ -24,6 +24,7 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; +import org.apache.commons.mail.activation.InputStreamDataSource; import org.junit.jupiter.api.Test; /**