Author: britter
Date: Sat Mar 28 13:39:38 2015
New Revision: 1669774
URL: http://svn.apache.org/r1669774
Log:
Make checkstyle happy: add missing JavaDoc
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java?rev=1669774&r1=1669773&r2=1669774&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
Sat Mar 28 13:39:38 2015
@@ -841,7 +841,11 @@ public class FastDateParser implements D
private static class ISO8601TimeZoneStrategy extends Strategy {
// Z, +hh, -hh, +hhmm, -hhmm, +hh:mm or -hh:mm
private final String pattern;
-
+
+ /**
+ * Construct a Strategy that parses a TimeZone
+ * @param pattern The Pattern
+ */
ISO8601TimeZoneStrategy(String pattern) {
this.pattern = pattern;
}
@@ -871,6 +875,13 @@ public class FastDateParser implements D
private static final Strategy ISO_8601_2_STRATEGY = new
ISO8601TimeZoneStrategy("(Z|(?:[+-]\\d{2}\\d{2}))");
private static final Strategy ISO_8601_3_STRATEGY = new
ISO8601TimeZoneStrategy("(Z|(?:[+-]\\d{2}(?::)\\d{2}))");
+ /**
+ * Factory method for ISO8601TimeZoneStrategies.
+ *
+ * @param tokenLen a token indicating the length of the TimeZone
String to be formatted.
+ * @return a ISO8601TimeZoneStrategy that can format TimeZone String
of length {@code tokenLen}. If no such
+ * strategy exists, an IllegalArgumentException will be
thrown.
+ */
static Strategy getStrategy(int tokenLen) {
switch(tokenLen) {
case 1:
@@ -880,7 +891,7 @@ public class FastDateParser implements D
case 3:
return ISO_8601_3_STRATEGY;
default:
- throw new IllegalArgumentException("invalid number of X");
+ throw new IllegalArgumentException("invalid number of X");
}
}
}
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
URL:
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java?rev=1669774&r1=1669773&r2=1669774&view=diff
==============================================================================
---
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
(original)
+++
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
Sat Mar 28 13:39:38 2015
@@ -588,6 +588,12 @@ public class FastDatePrinter implements
init();
}
+ /**
+ * Appends digits to the given buffer.
+ *
+ * @param buffer the buffer to append to.
+ * @param value the value to append digits from.
+ */
private static void appendDigits(final StringBuffer buffer, final int
value) {
buffer.append((char)(value / 10 + '0'));
buffer.append((char)(value % 10 + '0'));
@@ -1242,6 +1248,13 @@ public class FastDatePrinter implements
// Sign TwoDigitHours : Minutes or Z
static final Iso8601_Rule ISO8601_HOURS_COLON_MINUTES = new
Iso8601_Rule(6);
+ /**
+ * Factory method for Iso8601_Rules.
+ *
+ * @param tokenLen a token indicating the length of the TimeZone
String to be formatted.
+ * @return a Iso8601_Rule that can format TimeZone String of length
{@code tokenLen}. If no such
+ * rule exists, an IllegalArgumentException will be thrown.
+ */
static Iso8601_Rule getRule(int tokenLen) {
switch(tokenLen) {
case 1: