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 cdd7216 Use primitive parsing. cdd7216 is described below commit cdd7216cf3fd3c0310d428d5b996d1435a9f264b Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Feb 28 18:47:17 2021 -0500 Use primitive parsing. --- src/test/java/org/apache/commons/mail/EmailTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/mail/EmailTest.java b/src/test/java/org/apache/commons/mail/EmailTest.java index ffb965a..323eedc 100644 --- a/src/test/java/org/apache/commons/mail/EmailTest.java +++ b/src/test/java/org/apache/commons/mail/EmailTest.java @@ -235,12 +235,12 @@ public class EmailTest extends AbstractEmailTest email.setSmtpPort(1); assertEquals( 1, - Integer.valueOf(email.getSmtpPort()).intValue()); + Integer.parseInt(email.getSmtpPort())); email.setSmtpPort(Integer.MAX_VALUE); assertEquals( Integer.MAX_VALUE, - Integer.valueOf(email.getSmtpPort()).intValue()); + Integer.parseInt(email.getSmtpPort())); } @Test(expected = IllegalArgumentException.class)