Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Guss2018-05-03 16:39:00 -0400
committerDominic Guss2018-07-12 18:14:56 -0400
commit813e9f21c1d57cff1998dfceff3e0aad4b3327ea (patch)
treec0735420e5d054fbe2bfa75d549bc6600e8de01b
parent9bcbb9ca0d9caff619c7baf9540e4b6fbd92c07d (diff)
downloadorg.eclipse.osee-813e9f21c1d57cff1998dfceff3e0aad4b3327ea.tar.gz
org.eclipse.osee-813e9f21c1d57cff1998dfceff3e0aad4b3327ea.tar.xz
org.eclipse.osee-813e9f21c1d57cff1998dfceff3e0aad4b3327ea.zip
bug[ats_TW9305]: Fix failed tasks column not filled correctly
Change-Id: I84e141b32e12eef7aedc6250d8260d5c39885a36 Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
index bbfb85c483..3b7d2eb690 100644
--- a/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
+++ b/plugins/org.eclipse.osee.disposition.rest/src/org/eclipse/osee/disposition/rest/util/DispoUtil.java
@@ -625,24 +625,20 @@ public final class DispoUtil {
public static List<String> findMissingDiscrepancyLocs(List<Integer> ranges, DispoItem item) {
List<String> missingDiscrepanciesLoc = new ArrayList<>();
+ List<String> currentLocations = new ArrayList<>();
if (ranges != null && !ranges.isEmpty()) {
- boolean found = false;
- String location = "";
for (Entry<String, Discrepancy> discrepancy : item.getDiscrepanciesList().entrySet()) {
- Discrepancy value = discrepancy.getValue();
- location = value.getLocation();
+ String location = discrepancy.getValue().getLocation();
if (Strings.isValid(location)) {
- if (ranges.contains(location)) {
- found = true;
- break;
- }
+ currentLocations.add(location);
}
}
- if (!found) {
- missingDiscrepanciesLoc.add(String.valueOf(location));
+ for (Integer range : ranges) {
+ if (!currentLocations.contains(String.valueOf(range))) {
+ missingDiscrepanciesLoc.add(String.valueOf(range));
+ }
}
}
return missingDiscrepanciesLoc;
}
-
}

Back to the top