You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/02 15:07:31 UTC
[commons-email] branch master updated: Update call deprecated in Java 9
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
The following commit(s) were added to refs/heads/master by this push:
new dc05f45 Update call deprecated in Java 9
dc05f45 is described below
commit dc05f4546ced880f0f4ac5db72e7fe12bbb23598
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Oct 2 11:07:27 2023 -0400
Update call deprecated in Java 9
---
src/test/java/org/apache/commons/mail/EmailLiveTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/mail/EmailLiveTest.java b/src/test/java/org/apache/commons/mail/EmailLiveTest.java
index 90840b2..03e34ca 100644
--- a/src/test/java/org/apache/commons/mail/EmailLiveTest.java
+++ b/src/test/java/org/apache/commons/mail/EmailLiveTest.java
@@ -86,7 +86,7 @@ public class EmailLiveTest extends AbstractEmailTest
*/
private Email create(final Class<? extends Email> clazz) throws Exception {
- final Email email = clazz.newInstance();
+ final Email email = clazz.getConstructor().newInstance();
email.setStartTLSEnabled(EmailConfiguration.MAIL_USE_STARTTLS);
email.setStartTLSRequired(EmailConfiguration.MAIL_STARTTLS_REQUIRED);