Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-12-17 22:03:09 -0500
committerRoberto E. Escobar2014-12-17 22:09:17 -0500
commit74aa6939944c77c8aa25657ec55e4d85860c0271 (patch)
treed49ed249d0e1a19bae000f37a643fdc0924edc0f
parent0030cf4c7cf0ec8563d2e2619a88b4b1c879ef0f (diff)
downloadorg.eclipse.osee-0.19.0.v201412180400_RC.tar.gz
org.eclipse.osee-0.19.0.v201412180400_RC.tar.xz
org.eclipse.osee-0.19.0.v201412180400_RC.zip
bug: Fix junit tests for Java 80.19.0.v201412180400_RC
-rw-r--r--plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/review/XDecisionOptions.java4
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/xviewer/column/XViewerAtsAttributeValueColumn.java6
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XCombo.java4
3 files changed, 7 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/review/XDecisionOptions.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/review/XDecisionOptions.java
index ca1b4995c0d..5f1197eaae5 100644
--- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/review/XDecisionOptions.java
+++ b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/review/XDecisionOptions.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.ats.core.client.review;
import java.lang.ref.WeakReference;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.Set;
import java.util.logging.Level;
import org.eclipse.osee.ats.api.IAtsWorkItem;
@@ -61,7 +61,7 @@ public class XDecisionOptions {
}
public static Set<DecisionOption> getDecisionOptions(String decisionOptions) {
- Set<DecisionOption> decOptions = new HashSet<DecisionOption>();
+ Set<DecisionOption> decOptions = new LinkedHashSet<DecisionOption>();
for (String decsionOpt : decisionOptions.split("[\n\r]+")) {
DecisionOption state = new DecisionOption();
Result result = state.setFromXml(decsionOpt);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/xviewer/column/XViewerAtsAttributeValueColumn.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/xviewer/column/XViewerAtsAttributeValueColumn.java
index 8b493378908..4e777ef3596 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/xviewer/column/XViewerAtsAttributeValueColumn.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/xviewer/column/XViewerAtsAttributeValueColumn.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.ats.util.xviewer.column;
import java.util.Collection;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.Set;
import java.util.logging.Level;
import org.eclipse.nebula.widgets.xviewer.IAltLeftClickProvider;
@@ -79,7 +79,7 @@ public class XViewerAtsAttributeValueColumn extends XViewerAtsAttributeColumn im
return ((AbstractWorkflowArtifact) element).getAttributesToStringUnique(getAttributeType(), ";");
}
if (Artifacts.isOfType(element, AtsArtifactTypes.Action)) {
- Set<String> strs = new HashSet<String>();
+ Set<String> strs = new LinkedHashSet<String>();
for (TeamWorkFlowArtifact team : ActionManager.getTeams(element)) {
String str = getColumnText(team, column, columnIndex);
if (Strings.isValid(str)) {
@@ -102,7 +102,7 @@ public class XViewerAtsAttributeValueColumn extends XViewerAtsAttributeColumn im
@Override
public void handleColumnMultiEdit(TreeColumn treeColumn, Collection<TreeItem> treeItems) {
- Set<AbstractWorkflowArtifact> awas = new HashSet<AbstractWorkflowArtifact>();
+ Set<AbstractWorkflowArtifact> awas = new LinkedHashSet<AbstractWorkflowArtifact>();
for (TreeItem item : treeItems) {
Artifact art = (Artifact) item.getData();
try {
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XCombo.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XCombo.java
index ef106a45bc9..559cc476f7b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XCombo.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/XCombo.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.osee.framework.ui.skynet.widgets;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.Map;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -35,7 +35,7 @@ public class XCombo extends XButtonCommon {
protected String data = "";
protected String[] inDataStrings; // Strings sent in for display
//
- private final Map<String, Integer> displayDataStrings = new HashMap<String, Integer>();
+ private final Map<String, Integer> displayDataStrings = new LinkedHashMap<String, Integer>();
private String displayArray[];
private boolean isDefaultSelectionAllowed;

Back to the top