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
@@ -319,10 +319,10 @@ public class WebToolsServices {
String readers = (String) context.get("readers");
String overrideDelegator = (String) context.get("overrideDelegator");
String overrideGroup = (String) context.get("overrideGroup");
boolean useDummyFks = "true".equals((String) context.get("createDummyFks"));
boolean maintainTxs = "true".equals((String) context.get("maintainTimeStamps"));
boolean tryInserts = "true".equals((String) context.get("mostlyInserts"));
boolean checkDataOnly = "true".equals((String) context.get("checkDataOnly"));
boolean useDummyFks = "true".equals(context.get("createDummyFks"));
boolean maintainTxs = "true".equals(context.get("maintainTimeStamps"));
boolean tryInserts = "true".equals(context.get("mostlyInserts"));
boolean checkDataOnly = "true".equals(context.get("checkDataOnly"));
Integer txTimeoutInt = (Integer) context.get("txTimeout");
int txTimeout = txTimeoutInt != null ? txTimeoutInt.intValue() : -1;
@@ -513,7 +513,7 @@ public class WebToolsServices {
//Don't bother writing the file if there's nothing
//to put into it
GenericValue value = (GenericValue) values.next();
GenericValue value = values.next();
if (value != null) {
PrintWriter writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(outdir, curEntityName +".xml")), "UTF-8")));
writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
@@ -526,7 +526,7 @@ public class WebToolsServices {
TransactionUtil.commit(beganTx);
beganTx = TransactionUtil.begin();
}
} while ((value = (GenericValue) values.next()) != null);
} while ((value = values.next()) != null);
writer.println("</entity-engine-xml>");
writer.close();
results.add("["+fileNumber +"] [" + numberWritten + "] " + curEntityName + " wrote " + numberWritten + " records");
@@ -68,7 +68,7 @@ public class ControllerRequestArtifactInfo extends ArtifactInfoBase {
// populate serviceCalledByRequestEvent, requestsThatAreResponsesToThisRequest, viewsThatAreResponsesToThisRequest and related reverse maps
if (this.requestInfoMap.event != null && this.requestInfoMap.event.type != null && (this.requestInfoMap.event.type.indexOf("service") >= 0)) {
String serviceName = (String) this.requestInfoMap.event.invoke;
String serviceName = this.requestInfoMap.event.invoke;
try {
this.serviceCalledByRequestEvent = this.aif.getServiceArtifactInfo(serviceName);
if (this.serviceCalledByRequestEvent != null) {
@@ -85,7 +85,7 @@ public class ServiceArtifactInfo extends ArtifactInfoBase {
SimpleMethod simpleMethodToCall = null;
try {
Map<String, SimpleMethod> simpleMethods = SimpleMethod.getSimpleMethods(this.modelService.location, null);
simpleMethodToCall = (SimpleMethod) simpleMethods.get(this.modelService.invoke);
simpleMethodToCall = simpleMethods.get(this.modelService.invoke);
} catch (MiniLangException e) {
Debug.logWarning("Error getting Simple-method [" + this.modelService.invoke + "] in [" + this.modelService.location + "] referenced in service [" + this.modelService.name + "]: " + e.toString(), module);
}
@@ -146,7 +146,7 @@ public class ServiceArtifactInfo extends ArtifactInfoBase {
SimpleMethod simpleMethodToCall = null;
try {
Map<String, SimpleMethod> simpleMethods = SimpleMethod.getSimpleMethods(this.modelService.location, null);
simpleMethodToCall = (SimpleMethod) simpleMethods.get(this.modelService.invoke);
simpleMethodToCall = simpleMethods.get(this.modelService.invoke);
} catch (MiniLangException e) {
Debug.logWarning("Error getting Simple-method [" + this.modelService.invoke + "] in [" + this.modelService.location + "] referenced in service [" + this.modelService.name + "]: " + e.toString(), module);
}
@@ -59,7 +59,7 @@ public class LabelInfo {
}
public LabelValue getLabelValue(String localeStr) {
return (LabelValue)labelValues.get(localeStr);
return labelValues.get(localeStr);
}
public int getLabelValueSize() {