From 315c92dad91f1a5a97610969c27263a64cb4e9bb Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Fri, 8 Nov 2013 09:40:27 +0000
Subject: [PATCH] BIS-569 SP-1016 Improve javadoc of IMailClient

SVN: 30118
---
 .../cisd/common/mail/IMailClient.java         | 40 +++++++++----------
 1 file changed, 18 insertions(+), 22 deletions(-)

diff --git a/common/source/java/ch/systemsx/cisd/common/mail/IMailClient.java b/common/source/java/ch/systemsx/cisd/common/mail/IMailClient.java
index 6d0a1886b48..6697ab476ad 100644
--- a/common/source/java/ch/systemsx/cisd/common/mail/IMailClient.java
+++ b/common/source/java/ch/systemsx/cisd/common/mail/IMailClient.java
@@ -29,44 +29,41 @@ public interface IMailClient
 {
 
     /**
-     * Warning: deprecated, use
-     * {@link #sendEmailMessage(String, String, EMailAddress, EMailAddress, EMailAddress...)}
-     * instead. They do proper escaping of personal names with comas and semi-colons.<br>
+     * Warning: deprecated, use {@link #sendEmailMessage(String, String, EMailAddress, EMailAddress, EMailAddress...)} instead. They do proper
+     * escaping of personal names with comas and semi-colons.<br>
      * <br>
-     * Sends a mail with given <var>subject</var> and <var>content</var> to given
-     * <var>recipients</var>.
+     * Sends a mail with given <var>subject</var> and <var>content</var> to given <var>recipients</var>.
      * 
      * @param replyToOrNull reply-to part of the email header. Can be <code>null</code>.
-     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified -
-     *            will overwrite the 'from' value specified for the client.
+     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified - will overwrite the 'from' value specified for the
+     *            client.
      * @param recipients list of recipients (of type <code>Message.RecipientType.TO</code>)
+     * @deprecated Use {@link #sendEmailMessage(String, String, EMailAddress, EMailAddress, EMailAddress...)} instead. They do proper escaping of
+     *             personal names with comas and semi-colons.
      */
-    // TODO 2010-06-15, Tomasz Pylak: @deprecated, use the new method
+    @Deprecated
     public void sendMessage(String subject, String content, String replyToOrNull, From fromOrNull,
             String... recipients) throws EnvironmentFailureException;
 
     /**
-     * Sends a mail with given <var>subject</var> and <var>content</var> to given
-     * <var>recipients</var>.
+     * Sends a mail with given <var>subject</var> and <var>content</var> to given <var>recipients</var>.
      * 
      * @param replyToOrNull Reply-to email header. Can be <code>null</code>.
-     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified -
-     *            will overwrite the 'from' value specified for the client.
+     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified - will overwrite the 'from' value specified for the
+     *            client.
      * @param recipients list of recipients (of type <code>Message.RecipientType.TO</code>)
      */
     public void sendEmailMessage(String subject, String content, EMailAddress replyToOrNull,
             EMailAddress fromOrNull, EMailAddress... recipients) throws EnvironmentFailureException;
 
     /**
-     * Sends a mail with given <var>subject</var> and <var>content</var> to given
-     * <var>recipients</var>, includig the given <var>attachment</var>
+     * Sends a mail with given <var>subject</var> and <var>content</var> to given <var>recipients</var>, includig the given <var>attachment</var>
      * 
      * @param replyToOrNull reply-to part of the email header. Can be <code>null</code>.
-     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified -
-     *            will overwrite the 'from' value specified for the client.
+     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified - will overwrite the 'from' value specified for the
+     *            client.
      * @param recipients list of recipients (of type <code>Message.RecipientType.TO</code>)
-     * @deprecated Use
-     *             {@link #sendEmailMessageWithAttachment(String, String, String, DataHandler, EMailAddress, EMailAddress, EMailAddress...)}
+     * @deprecated Use {@link #sendEmailMessageWithAttachment(String, String, String, DataHandler, EMailAddress, EMailAddress, EMailAddress...)}
      *             instead. They do proper escaping of personal names with comas and semi-colons.
      */
     @Deprecated
@@ -75,12 +72,11 @@ public interface IMailClient
             final From fromOrNull, final String... recipients) throws EnvironmentFailureException;
 
     /**
-     * Sends a mail with given <var>subject</var> and <var>content</var> to given
-     * <var>recipients</var>, includig the given <var>attachment</var>
+     * Sends a mail with given <var>subject</var> and <var>content</var> to given <var>recipients</var>, includig the given <var>attachment</var>
      * 
      * @param replyToOrNull Reply-to email header. Can be <code>null</code>.
-     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified -
-     *            will overwrite the 'from' value specified for the client.
+     * @param fromOrNull from part of the email header. Can be <code>null</code>. If specified - will overwrite the 'from' value specified for the
+     *            client.
      * @param recipients list of recipients (of type <code>Message.RecipientType.TO</code>)
      */
     public void sendEmailMessageWithAttachment(final String subject, final String content,
-- 
GitLab