Skip to content

Commit

Permalink
Bump commons-parent from 69 to 71
Browse files Browse the repository at this point in the history
Fix PMD UnnecessaryFullyQualifiedName issues
  • Loading branch information
garydgregory committed Jun 15, 2024
1 parent 0ae5904 commit 618ab68
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class EmailAttachment {
private URL url;

/** The disposition. */
private String disposition = EmailAttachment.ATTACHMENT;
private String disposition = ATTACHMENT;

/**
* Constructs a new instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public String embed(final DataSource dataSource, final String name) throws Email
+ "; existing names cannot be rebound");
}

final String cid = EmailUtils.toLower(EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH));
final String cid = EmailUtils.toLower(EmailUtils.randomAlphabetic(CID_LENGTH));
return embed(dataSource, name, cid);
}

Expand Down Expand Up @@ -357,7 +357,7 @@ public String embed(final DataSource dataSource, final String name, final String
* @since 1.1
*/
public String embed(final File file) throws EmailException {
return embed(file, EmailUtils.toLower(EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH)));
return embed(file, EmailUtils.toLower(EmailUtils.randomAlphabetic(CID_LENGTH)));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class EmailAttachment {
private URL url;

/** The disposition. */
private String disposition = EmailAttachment.ATTACHMENT;
private String disposition = ATTACHMENT;

/**
* Constructs a new instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public String embed(final DataSource dataSource, final String name) throws Email
+ "; existing names cannot be rebound");
}

final String cid = EmailUtils.toLower(EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH));
final String cid = EmailUtils.toLower(EmailUtils.randomAlphabetic(CID_LENGTH));
return embed(dataSource, name, cid);
}

Expand Down Expand Up @@ -357,7 +357,7 @@ public String embed(final DataSource dataSource, final String name, final String
* @since 1.1
*/
public String embed(final File file) throws EmailException {
return embed(file, EmailUtils.toLower(EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH)));
return embed(file, EmailUtils.toLower(EmailUtils.randomAlphabetic(CID_LENGTH)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.commons</groupId>
<artifactId>commons-parent</artifactId>
<version>69</version>
<version>71</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>commons-email2-parent</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
<action dev="ggregory" type="add" due-to="Gary Gregory">Add Maven property project.build.outputTimestamp for build reproducibility.</action>
<!-- FIX -->
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix Checkstyle configuration.</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix PMD UnnecessaryFullyQualifiedName issues.</action>
<!-- UPDATE -->
<action type="update" due-to="Dependabot" dev="ggregory">Bump org.slf4j:slf4j-jdk14 from 2.0.9 to 2.0.13 #238.</action>
<action type="update" due-to="Dependabot" dev="ggregory">Bump com.github.davidmoten:subethasmtp from 6.0.7 to 7.1.1 #252.</action>
<action type="update" due-to="Dependabot" dev="ggregory">Bump org.mockito:mockito-core from 5.8.0 to 5.12.0 #222, #251.</action>
<action type="update" due-to="Gary Gregory" dev="ggregory">Bump commons-parent from 65 to 69 #233.</action>
<action type="update" due-to="Gary Gregory" dev="ggregory">Bump commons-parent from 65 to 71 #233.</action>
<action type="update" due-to="Dependabot" dev="ggregory">Bump commons-io:commons-io from 2.15.1 to 2.16.1 #231, #236.</action>
</release>
<release version="1.6.0" date="2023-12-17" description="Feature release (Java 8 or above).">
Expand Down

0 comments on commit 618ab68

Please sign in to comment.