This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 215b8ea Remove unused code (#62) 215b8ea is described below commit 215b8ea53cc8ab7d1092f6db0c24f5145f855657 Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Sat Nov 23 20:07:47 2024 +0000 Remove unused code (#62) * Remove unused code --- .../mailsender/ProjectJavamailMailSender.java | 16 ---------------- .../org/apache/maven/plugins/changes/ChangesReport.java | 6 ------ .../org/apache/maven/plugins/changes/FeedGenerator.java | 3 +-- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java b/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java index 0b73b5d..c5ab8ef 100644 --- a/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java +++ b/src/main/java/org/apache/maven/plugins/announcement/mailsender/ProjectJavamailMailSender.java @@ -42,12 +42,6 @@ import org.codehaus.plexus.util.StringUtils; public class ProjectJavamailMailSender extends AbstractMailSender { private static final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; - // ---------------------------------------------------------------------- - // - // ---------------------------------------------------------------------- - - private Properties userProperties; - private Properties props; // ---------------------------------------------------------------------- @@ -86,16 +80,6 @@ public class ProjectJavamailMailSender extends AbstractMailSender { if (isTlsEnabled()) { props.put("mail.smtp.starttls.enable", "true"); } - - if (userProperties != null) { - for (Object o : userProperties.keySet()) { - String key = (String) o; - - String value = userProperties.getProperty(key); - - props.put(key, value); - } - } } // ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java b/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java index 434dd4c..af78033 100644 --- a/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java +++ b/src/main/java/org/apache/maven/plugins/changes/ChangesReport.java @@ -295,12 +295,6 @@ public class ChangesReport extends AbstractChangesReport { copyStaticResources(); } - private void failIfUsingDeprecatedParameter(Object value, String name, String message) throws MavenReportException { - if (value != null) { - throw new MavenReportException("You are using the old parameter '" + name + "'. " + message); - } - } - @Override public String getDescription(Locale locale) { return getBundle(locale).getString("report.issues.description"); diff --git a/src/main/java/org/apache/maven/plugins/changes/FeedGenerator.java b/src/main/java/org/apache/maven/plugins/changes/FeedGenerator.java index cb96ab0..fcb9816 100644 --- a/src/main/java/org/apache/maven/plugins/changes/FeedGenerator.java +++ b/src/main/java/org/apache/maven/plugins/changes/FeedGenerator.java @@ -153,10 +153,9 @@ public class FeedGenerator { /** * A List of supported feed types. * - * @return a List of supported feed types. + * @return a List of supported feed types * @see #isSupportedFeedType(java.lang.String) */ - @SuppressWarnings("unchecked") public List<String> getSupportedFeedTypes() { return feed.getSupportedFeedTypes(); }