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 f916e1d6ea55d9a071cf4140b8400565ca7493c0 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Dec 17 09:00:21 2023 -0500 Make private instance variable final --- src/main/java/org/apache/commons/mail/InputStreamDataSource.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/mail/InputStreamDataSource.java b/src/main/java/org/apache/commons/mail/InputStreamDataSource.java index 4c9ea2d..ac5536e 100644 --- a/src/main/java/org/apache/commons/mail/InputStreamDataSource.java +++ b/src/main/java/org/apache/commons/mail/InputStreamDataSource.java @@ -35,7 +35,7 @@ public final class InputStreamDataSource implements DataSource { private final String contentType; private final InputStream inputStream; - private String name; + private final String name; /** * Constructs a new instance. @@ -44,8 +44,7 @@ public final class InputStreamDataSource implements DataSource { * @param contentType A content type. */ public InputStreamDataSource(final InputStream inputStream, final String contentType) { - this.inputStream = inputStream; - this.contentType = contentType; + this(inputStream, contentType, null); } /**