SWF-926 XmlFlowModelBuilder uses java 1.5 String.contains() method (not compatible with jre 1.4)

removed call to java 5 method
This commit is contained in:
Scott Andrews
2008-10-29 15:21:49 +00:00
parent c664c7e73c
commit 108840248a

View File

@@ -650,12 +650,13 @@ public class XmlFlowModelBuilder implements FlowModelBuilder {
String flowId;
String stateId;
AbstractStateModel parentState = null;
if (!parent.contains("#")) {
int hashIndex = parent.indexOf("#");
if (hashIndex == -1) {
throw new FlowModelBuilderException("Invalid parent syntax '" + parent
+ "', should take form 'flowId#stateId'");
}
flowId = parent.substring(0, parent.indexOf("#")).trim();
stateId = parent.substring(parent.indexOf("#") + 1).trim();
flowId = parent.substring(0, hashIndex).trim();
stateId = parent.substring(hashIndex + 1).trim();
try {
parentState = modelLocator.getFlowModel(flowId).getStateById(stateId);
if (parentState == null) {