You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2017/09/02 18:49:56 UTC

svn commit: r1807074 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java

Author: pmouawad
Date: Sat Sep  2 18:49:56 2017
New Revision: 1807074

URL: http://svn.apache.org/viewvc?rev=1807074&view=rev
Log:
Improve javadocs formatting

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java?rev=1807074&r1=1807073&r2=1807074&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java Sat Sep  2 18:49:56 2017
@@ -45,19 +45,21 @@ import com.github.benmanes.caffeine.cach
 import com.github.benmanes.caffeine.cache.Caffeine;
 
 /**
- * RandomDate Function permit to generate a date in a specific range
+ * RandomDate Function generates a date in a specific range
  *
- * Parameters: - Time format @see https://docs.oracle.com/javase/8/docs/api/java
- * ime/format/DateTimeFormatter.html (optional - default yyyy-MM-dd) - Start
- * date formated as first param (optional - defaults now) - End date - a string
- * of the locale for the format ( optional ) - variable name ( optional )
- *
- * Returns: a formatted date with the specified number of (days, month, year) -
- * value is also saved in the variable for later re-use.
+ * Parameters: 
+ * <ul>
+ *  <li>Time format @see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html (optional - defaults to yyyy-MM-dd)</li>
+ *  <li>Start date formated as first param (optional - defaults to now)</li>
+ *  <li>End date</li>
+ *  <li>Locale for the format (optional)</li> 
+ *  <li>variable name (optional)</li>
+ * </ul>
+ * Returns a formatted date with the specified number of (days, month, year) <br/>
+ * Value is also saved in the variable for later re-use.
  * 
  * @since 3.3
  */
-
 public class RandomDate extends AbstractFunction {
 
     private static final Logger log = LoggerFactory.getLogger(RandomDate.class);
@@ -126,7 +128,7 @@ public class RandomDate extends Abstract
     }
 
     /** Date time format cache handler **/
-    private Cache<LocaleFormatObject, DateTimeFormatter> dateRandomFormatterCache = null;
+    private Cache<LocaleFormatObject, DateTimeFormatter> dateRandomFormatterCache;
 
     public RandomDate() {
         super();
@@ -241,4 +243,3 @@ public class RandomDate extends Abstract
     }
 
 }
-



Re: svn commit: r1807074 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 02.09.2017 um 20:49 schrieb pmouawad@apache.org:
> Author: pmouawad
> Date: Sat Sep  2 18:49:56 2017
> New Revision: 1807074
>
> URL: http://svn.apache.org/viewvc?rev=1807074&view=rev
> Log:
> Improve javadocs formatting
>
> Modified:
>      jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java
>
> Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java
> URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java?rev=1807074&r1=1807073&r2=1807074&view=diff
> ==============================================================================
> --- jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java (original)
> +++ jmeter/trunk/src/functions/org/apache/jmeter/functions/RandomDate.java Sat Sep  2 18:49:56 2017
> @@ -45,19 +45,21 @@ import com.github.benmanes.caffeine.cach
>   import com.github.benmanes.caffeine.cache.Caffeine;
>   
>   /**
> - * RandomDate Function permit to generate a date in a specific range
> + * RandomDate Function generates a date in a specific range
>    *
> - * Parameters: - Time format @see https://docs.oracle.com/javase/8/docs/api/java
> - * ime/format/DateTimeFormatter.html (optional - default yyyy-MM-dd) - Start
> - * date formated as first param (optional - defaults now) - End date - a string
> - * of the locale for the format ( optional ) - variable name ( optional )
> - *
> - * Returns: a formatted date with the specified number of (days, month, year) -
> - * value is also saved in the variable for later re-use.
> + * Parameters:
> + * <ul>
> + *  <li>Time format @see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html (optional - defaults to yyyy-MM-dd)</li>
> + *  <li>Start date formated as first param (optional - defaults to now)</li>
> + *  <li>End date</li>
> + *  <li>Locale for the format (optional)</li>
> + *  <li>variable name (optional)</li>
> + * </ul>
> + * Returns a formatted date with the specified number of (days, month, year) <br/>
> + * Value is also saved in the variable for later re-use.
>    *
>    * @since 3.3
>    */
> -
>   public class RandomDate extends AbstractFunction {
>   
>       private static final Logger log = LoggerFactory.getLogger(RandomDate.class);
> @@ -126,7 +128,7 @@ public class RandomDate extends Abstract
>       }
>   
>       /** Date time format cache handler **/
> -    private Cache<LocaleFormatObject, DateTimeFormatter> dateRandomFormatterCache = null;
> +    private Cache<LocaleFormatObject, DateTimeFormatter> dateRandomFormatterCache;
This is not a javadoc change :)
I think it is OK not to change the svn commit message afterwards, though.

Felix
>   
>       public RandomDate() {
>           super();
> @@ -241,4 +243,3 @@ public class RandomDate extends Abstract
>       }
>   
>   }
> -
>
>