mirror of
https://github.com/apache/commons-lang.git
synced 2025-03-08 17:20:01 +00:00
Make checkstyle happy: add missing JavaDoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1669774 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fdc606c35
commit
346aae3b32
@ -841,7 +841,11 @@ else if(value.startsWith("GMT")) {
|
|||||||
private static class ISO8601TimeZoneStrategy extends Strategy {
|
private static class ISO8601TimeZoneStrategy extends Strategy {
|
||||||
// Z, +hh, -hh, +hhmm, -hhmm, +hh:mm or -hh:mm
|
// Z, +hh, -hh, +hhmm, -hhmm, +hh:mm or -hh:mm
|
||||||
private final String pattern;
|
private final String pattern;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct a Strategy that parses a TimeZone
|
||||||
|
* @param pattern The Pattern
|
||||||
|
*/
|
||||||
ISO8601TimeZoneStrategy(String pattern) {
|
ISO8601TimeZoneStrategy(String pattern) {
|
||||||
this.pattern = pattern;
|
this.pattern = pattern;
|
||||||
}
|
}
|
||||||
@ -871,6 +875,13 @@ void setCalendar(FastDateParser parser, Calendar cal, String value) {
|
|||||||
private static final Strategy ISO_8601_2_STRATEGY = new ISO8601TimeZoneStrategy("(Z|(?:[+-]\\d{2}\\d{2}))");
|
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}))");
|
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) {
|
static Strategy getStrategy(int tokenLen) {
|
||||||
switch(tokenLen) {
|
switch(tokenLen) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -880,7 +891,7 @@ static Strategy getStrategy(int tokenLen) {
|
|||||||
case 3:
|
case 3:
|
||||||
return ISO_8601_3_STRATEGY;
|
return ISO_8601_3_STRATEGY;
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException("invalid number of X");
|
throw new IllegalArgumentException("invalid number of X");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -588,6 +588,12 @@ private void readObject(final ObjectInputStream in) throws IOException, ClassNot
|
|||||||
init();
|
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) {
|
private static void appendDigits(final StringBuffer buffer, final int value) {
|
||||||
buffer.append((char)(value / 10 + '0'));
|
buffer.append((char)(value / 10 + '0'));
|
||||||
buffer.append((char)(value % 10 + '0'));
|
buffer.append((char)(value % 10 + '0'));
|
||||||
@ -1242,6 +1248,13 @@ private static class Iso8601_Rule implements Rule {
|
|||||||
// Sign TwoDigitHours : Minutes or Z
|
// Sign TwoDigitHours : Minutes or Z
|
||||||
static final Iso8601_Rule ISO8601_HOURS_COLON_MINUTES = new Iso8601_Rule(6);
|
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) {
|
static Iso8601_Rule getRule(int tokenLen) {
|
||||||
switch(tokenLen) {
|
switch(tokenLen) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user