Author: lektran
Date: Wed Apr 7 03:51:02 2010
New Revision: 931422
URL: http://svn.apache.org/viewvc?rev=931422&view=rev
Log:
Remove some unnecessary casts
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=931422&r1=931421&r2=931422&view=diff
==============================================================================
---
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
(original)
+++
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Wed Apr 7 03:51:02 2010
@@ -550,16 +550,16 @@ public class HtmlFormRenderer extends Ht
if (shortDateInput) {
size = maxlength = 10;
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatDate");
+ localizedInputTitle = uiLabelMap.get("CommonFormatDate");
}
} else if ("time".equals(dateTimeField.getType())) {
size = maxlength = 8;
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatTime");
+ localizedInputTitle = uiLabelMap.get("CommonFormatTime");
}
} else {
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatDateTime");
+ localizedInputTitle = uiLabelMap.get("CommonFormatDateTime");
}
}
writer.append(" title=\"");
@@ -595,7 +595,7 @@ public class HtmlFormRenderer extends Ht
// search for a localized label for the icon
if (uiLabelMap != null) {
- localizedIconTitle = (String) uiLabelMap.get("CommonViewCalendar");
+ localizedIconTitle = uiLabelMap.get("CommonViewCalendar");
}
// add calendar pop-up button and seed data IF this is not a "time"
type date-time
@@ -2018,16 +2018,16 @@ public class HtmlFormRenderer extends Ht
if ("date".equals(dateFindField.getType())) {
size = maxlength = 10;
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatDate");
+ localizedInputTitle = uiLabelMap.get("CommonFormatDate");
}
} else if ("time".equals(dateFindField.getType())) {
size = maxlength = 8;
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatTime");
+ localizedInputTitle = uiLabelMap.get("CommonFormatTime");
}
} else {
if (uiLabelMap != null) {
- localizedInputTitle = (String)
uiLabelMap.get("CommonFormatDateTime");
+ localizedInputTitle = uiLabelMap.get("CommonFormatDateTime");
}
}
writer.append(" title=\"");
@@ -2056,7 +2056,7 @@ public class HtmlFormRenderer extends Ht
// search for a localized label for the icon
if (uiLabelMap != null) {
- localizedIconTitle = (String) uiLabelMap.get("CommonViewCalendar");
+ localizedIconTitle = uiLabelMap.get("CommonViewCalendar");
}
// add calendar pop-up button and seed data IF this is not a "time"
type date-find
@@ -2334,7 +2334,7 @@ public class HtmlFormRenderer extends Ht
if (uiLabelMap == null) {
Debug.logWarning("Could not find uiLabelMap in context", module);
} else {
- pageLabel = (String) uiLabelMap.get("CommonPage");
+ pageLabel = uiLabelMap.get("CommonPage");
Map<String, Integer> messageMap = UtilMisc.toMap("lowCount",
Integer.valueOf(lowIndex + 1), "highCount", Integer.valueOf(lowIndex +
actualPageSize), "total", Integer.valueOf(listSize));
commonDisplaying = UtilProperties.getMessage("CommonUiLabels",
"CommonDisplaying", messageMap, (Locale) context.get("locale"));
}