Author: nbelaevski
Date: 2007-11-01 10:56:38 -0400 (Thu, 01 Nov 2007)
New Revision: 3675
Modified:
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
JDK 1.4 incompatible code fixed
Modified:
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
---
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-01
14:56:14 UTC (rev 3674)
+++
branches/3.1.x/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-11-01
14:56:38 UTC (rev 3675)
@@ -383,9 +383,9 @@
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
JSFunction result = new JSFunction("new Date");
- result.addParameter(Integer.valueOf(calendar.get(Calendar.YEAR)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.MONTH)));
- result.addParameter(Integer.valueOf(calendar.get(Calendar.DATE)));
+ result.addParameter(new Integer(calendar.get(Calendar.YEAR)));
+ result.addParameter(new Integer(calendar.get(Calendar.MONTH)));
+ result.addParameter(new Integer(calendar.get(Calendar.DATE)));
return result;
}
Show replies by date