You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2011/06/24 02:20:01 UTC

svn commit: r1139130 - /pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java

Author: smartini
Date: Fri Jun 24 00:20:00 2011
New Revision: 1139130

URL: http://svn.apache.org/viewvc?rev=1139130&view=rev
Log:
small fix, as seen by FindBugs

Modified:
    pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java

Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java?rev=1139130&r1=1139129&r2=1139130&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewDateCellRenderer.java Fri Jun 24 00:20:00 2011
@@ -29,12 +29,10 @@ import org.apache.pivot.util.CalendarDat
  * cell contents as a formatted date.
  */
 public class TableViewDateCellRenderer extends TableViewCellRenderer {
-    private DateFormat dateFormat = DEFAULT_DATE_FORMAT;
-
-    protected static final DateFormat DEFAULT_DATE_FORMAT = DateFormat.getDateInstance();
+    private DateFormat dateFormat = DateFormat.getDateInstance();
 
     public DateFormat getDateFormat() {
-        return (DateFormat) dateFormat.clone();
+        return dateFormat;
     }
 
     public void setDateFormat(DateFormat dateFormat) {