commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djo...@apache.org
Subject svn commit: r1588857 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
Date Mon, 21 Apr 2014 08:18:44 GMT
Author: djones
Date: Mon Apr 21 08:18:43 2014
New Revision: 1588857

URL: http://svn.apache.org/r1588857
Log:
Added Javadoc to clear checkstyle error

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java?rev=1588857&r1=1588856&r2=1588857&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java
Mon Apr 21 08:18:43 2014
@@ -457,7 +457,15 @@ public class DurationFormatUtils {
         return buffer.toString();
     }
 
-    // Helper method to simplify repetive code in format method above
+    /**
+     * <p>Converts a {@code long} to a {@code String} with optional
+     * zero padding.</p>
+     *
+     * @param value the value to convert
+     * @param padWithZeros whether to pad with zeroes
+     * @param count the size to pad to (ignored if {@code padWithZeros} is false)
+     * @return the string result
+     */
     private static String paddedValue(final long value, final boolean padWithZeros, final
int count) {
         final String longString = Long.toString(value);
         return padWithZeros ? StringUtils.leftPad(longString, count, '0') : longString;



Mime
View raw message