Remove unnecessary casts

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Scott Gray
2010-12-12 21:31:27 +00:00
parent 54d64290f6
commit 47f43a302a
147 changed files with 464 additions and 464 deletions
@@ -336,7 +336,7 @@ public class EntityDataLoadContainer implements Container {
// add in the defined extra files
for (String fileName: this.files) {
URL fileUrl = UtilURL.fromResource((String) fileName);
URL fileUrl = UtilURL.fromResource(fileName);
if (fileUrl != null) {
urlList.add(fileUrl);
}
@@ -1066,14 +1066,14 @@ public class EntityPermissionChecker {
buf.append(StringUtil.join(this.operationList, ","));
buf.append("\n");
for (String fld: fieldNames) {
wid = (Integer)widths.get(fld);
wid = widths.get(fld);
buf.append(fld);
for (int i=0; i < (wid.intValue() - fld.length()); i++) buf.append("^");
buf.append(" ");
}
buf.append("\n");
for (String fld: fieldNames) {
wid = (Integer)widths.get(fld);
wid = widths.get(fld);
for (int i=0; i < wid.intValue(); i++) buf.append("-");
buf.append(" ");
}
@@ -1095,7 +1095,7 @@ public class EntityPermissionChecker {
if (UtilValidate.isEmpty(roleTypeId)) {
roleTypeId = "";
}
wid = (Integer)widths.get("roleFieldName");
wid = widths.get("roleFieldName");
buf.append(roleTypeId);
for (int i=0; i < (wid.intValue() - roleTypeId.length()); i++) buf.append("^");
buf.append(" ");
@@ -1104,7 +1104,7 @@ public class EntityPermissionChecker {
if (UtilValidate.isEmpty(auxiliaryFieldValue)) {
auxiliaryFieldValue = "";
}
wid = (Integer)widths.get("auxiliaryFieldName");
wid = widths.get("auxiliaryFieldName");
buf.append(auxiliaryFieldValue);
for (int i=0; i < (wid.intValue() - auxiliaryFieldValue.length()); i++) buf.append("^");
buf.append(" ");