You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/01/02 13:43:41 UTC
svn commit: r608095 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
Author: skitching
Date: Wed Jan 2 04:43:38 2008
New Revision: 608095
URL: http://svn.apache.org/viewvc?rev=608095&view=rev
Log:
trivial changes: add comment, wrap long lines.
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java?rev=608095&r1=608094&r2=608095&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java Wed Jan 2 04:43:38 2008
@@ -181,6 +181,10 @@
* Note that java.util.Calendar uses 1=sun, 7=sat.
* <p>
* This algorithm is documented as part of the RFC3339 specification.
+ *
+ * @param year is full year value (eg 2007).
+ * @param month is 1..12
+ * @param day is 1..31
*/
private static int dayOfWeek(int year, int month, int day)
{
@@ -495,7 +499,8 @@
/**
* Handle parsing of a single property, eg "yyyy" or "EEE".
*/
- private static void parsePattern(DateFormatSymbols symbols, boolean yearIsWeekYear, ParserContext context, String patternSub,
+ private static void parsePattern(DateFormatSymbols symbols, boolean yearIsWeekYear,
+ ParserContext context, String patternSub,
String dateStr, int dateIndex)
{
@@ -826,7 +831,8 @@
return str.toString();
}
- private static void formatPattern(DateFormatSymbols symbols, ParserContext context, String patternSub, boolean yearIsWeekYear, StringBuffer out)
+ private static void formatPattern(DateFormatSymbols symbols, ParserContext context,
+ String patternSub, boolean yearIsWeekYear, StringBuffer out)
{
char c = patternSub.charAt(0);
int patlen = patternSub.length();