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 2007/12/20 14:50:39 UTC

svn commit: r605930 - /myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java

Author: skitching
Date: Thu Dec 20 05:50:38 2007
New Revision: 605930

URL: http://svn.apache.org/viewvc?rev=605930&view=rev
Log:
Fix two trivial compile warnings.

Modified:
    myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java

Modified: myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java?rev=605930&r1=605929&r2=605930&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java (original)
+++ myfaces/tomahawk/trunk/core/src/test/java/org/apache/myfaces/dateformat/TestSimpleDateFormatter.java Thu Dec 20 05:50:38 2007
@@ -142,7 +142,6 @@
             SimpleDateFormatter sdf = new SimpleDateFormatter(pattern, null);
         
             Date d2 = sdf.parse(expected);
-            int year = d2.getYear();
             SimpleDateFormat sf = new SimpleDateFormat(pattern, locale);
             String s2 = sf.format(d2);
             assertEquals(pattern, expected, s2);
@@ -315,8 +314,8 @@
         int firstDayOfWeek = 1;
         SimpleDateFormatter.WeekDate jwd = SimpleDateFormatter.getJavaWeekNumber(date, firstDayOfWeek);
 
-        String ds = new SimpleDateFormat("yyyy-MM-dd").format(date);
         /*
+        String ds = new SimpleDateFormat("yyyy-MM-dd").format(date);
         System.out.println(
             ds + ":"
             + "(" + jodaWeekyear + "-" + jodaWeekOfWeekyear + ")"