svn commit: r931378 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r931378 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java

lektran
Author: lektran
Date: Wed Apr  7 00:18:52 2010
New Revision: 931378

URL: http://svn.apache.org/viewvc?rev=931378&view=rev
Log:
Removed an unnecessary cast, some autogenerated TODO commments and added a missing @Override

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java?rev=931378&r1=931377&r2=931378&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java Wed Apr  7 00:18:52 2010
@@ -1003,7 +1003,7 @@ public class ModelFormField {
             Map<String, String> uiLabelMap = UtilGenerics.checkMap(context.get("uiLabelMap"));
             if (uiLabelMap != null) {
                 String titleFieldName = "FormFieldTitle_" + this.name;
-                String localizedName = (String) uiLabelMap.get(titleFieldName);
+                String localizedName = uiLabelMap.get(titleFieldName);
                 if (!localizedName.equals(titleFieldName)) {
                     return localizedName;
                 }
@@ -3786,25 +3786,22 @@ public class ModelFormField {
 
         public ContainerField() {
             super();
-            // TODO Auto-generated constructor stub
         }
 
         public ContainerField(Element element, ModelFormField modelFormField) {
             super(element, modelFormField);
-            // TODO Auto-generated constructor stub
             this.setId(modelFormField.getIdName());
         }
 
         public ContainerField(int fieldSource, int fieldType,
                 ModelFormField modelFormField) {
             super(fieldSource, fieldType, modelFormField);
-            // TODO Auto-generated constructor stub
         }
 
+        @Override
         public void renderFieldString(Appendable writer,
                 Map<String, Object> context,
                 FormStringRenderer formStringRenderer) throws IOException {
-            // TODO Auto-generated method stub
             formStringRenderer.renderContainerFindField(writer, context, this);
         }