Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java')
-rw-r--r--plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java
index 2b6dcd9ab07..d12fdaf8f1b 100644
--- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java
+++ b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/workflow/ConvertWorkflowStatesOperation.java
@@ -111,8 +111,7 @@ public class ConvertWorkflowStatesOperation extends AbstractOperation {
private boolean stateNameIsValid(String stateName, XResultData rd) {
Matcher m = pattern.matcher(stateName);
if (!m.find()) {
- rd.errorf(
- "State name must be alpha-numeric with dashes, spaces or underscores. Invalid for [%s]", stateName);
+ rd.errorf("State name must be alpha-numeric with dashes, spaces or underscores. Invalid for [%s]", stateName);
return false;
}
return true;
@@ -137,7 +136,7 @@ public class ConvertWorkflowStatesOperation extends AbstractOperation {
for (Attribute<Object> attribute : awa.getAttributes(attrType)) {
for (Entry<String, String> fromToState : fromStateToStateMap.entrySet()) {
if (((String) attribute.getValue()).startsWith(fromToState.getKey() + ";")) {
- String fromStr = ((String) attribute.getValue());
+ String fromStr = (String) attribute.getValue();
String toStr = fromStr.replaceFirst(fromToState.getKey() + ";", fromToState.getValue() + ";");
attribute.setValue(toStr);
rd.logf("Convert [%s] \n [%s] to \n [%s]\n", attrType.getName(), fromStr, toStr);
@@ -169,7 +168,7 @@ public class ConvertWorkflowStatesOperation extends AbstractOperation {
for (Attribute<Object> attribute : attributes) {
for (Entry<String, String> fromToState : fromStateToStateMap.entrySet()) {
if (attribute.getValue().equals(fromToState.getKey())) {
- String fromStr = ((String) attribute.getValue());
+ String fromStr = (String) attribute.getValue();
String toStr = fromToState.getValue();
attribute.setValue(toStr);
rd.logf("Convert [%s] \n [%s] to \n [%s]\n", attrType.getName(), fromStr, toStr);

Back to the top