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 2021/03/05 19:00:17 UTC
[commons-email] branch master updated (cdd7216 -> 3e72e35)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-email.git.
from cdd7216 Use primitive parsing.
new 4c10370 No need to nest in else.
new 3e72e35 Add and use Maven default goal.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/maven.yml | 2 +-
pom.xml | 1 +
src/main/java/org/apache/commons/mail/Email.java | 6 +++---
3 files changed, 5 insertions(+), 4 deletions(-)
[commons-email] 02/02: Add and use Maven default goal.
Posted by gg...@apache.org.
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 3e72e355f995e5a844a9779d0d278a9e772ef4e6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Mar 5 14:00:14 2021 -0500
Add and use Maven default goal.
---
.github/workflows/maven.yml | 2 +-
pom.xml | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index f2ca238..230efad 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -45,4 +45,4 @@ jobs:
with:
java-version: ${{ matrix.java }}
- name: Build with Maven
- run: mvn -V apache-rat:check spotbugs:check javadoc:javadoc -Ddoclint=all package --file pom.xml --no-transfer-progress
+ run: mvn -V -Ddoclint=all --file pom.xml --no-transfer-progress
diff --git a/pom.xml b/pom.xml
index 16ac56a..6b9cf4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -313,6 +313,7 @@
</properties>
<build>
+ <defaultGoal>clean verify apache-rat:check clirr:check spotbugs:check javadoc:javadoc</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
[commons-email] 01/02: No need to nest in else.
Posted by gg...@apache.org.
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 4c10370ac86c1bf78548b9f39e8158a21d6796c9
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Mar 5 13:59:59 2021 -0500
No need to nest in else.
---
src/main/java/org/apache/commons/mail/Email.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/mail/Email.java b/src/main/java/org/apache/commons/mail/Email.java
index cbc23a1..16a8ac2 100644
--- a/src/main/java/org/apache/commons/mail/Email.java
+++ b/src/main/java/org/apache/commons/mail/Email.java
@@ -1558,7 +1558,7 @@ public abstract class Email
{
return this.session.getProperty(EmailConstants.MAIL_HOST);
}
- else if (EmailUtils.isNotEmpty(this.hostName))
+ if (EmailUtils.isNotEmpty(this.hostName))
{
return this.hostName;
}
@@ -1576,7 +1576,7 @@ public abstract class Email
{
return this.session.getProperty(EmailConstants.MAIL_PORT);
}
- else if (EmailUtils.isNotEmpty(this.smtpPort))
+ if (EmailUtils.isNotEmpty(this.smtpPort))
{
return this.smtpPort;
}
@@ -1746,7 +1746,7 @@ public abstract class Email
{
return this.session.getProperty(EmailConstants.MAIL_SMTP_SOCKET_FACTORY_PORT);
}
- else if (EmailUtils.isNotEmpty(this.sslSmtpPort))
+ if (EmailUtils.isNotEmpty(this.sslSmtpPort))
{
return this.sslSmtpPort;
}