Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2022-07-27 01:27:02 +0000
committerdonald.g.dunne2022-08-11 14:22:13 +0000
commit3b7d963284860fcf10619128c3bd40e8d44ebc54 (patch)
treed9874e223f3c9cc869e3389fd028b1997decc0d5
parenta7a9322d2654a101aceea661387e87991993eb5c (diff)
downloadorg.eclipse.osee-ddunne/f/nr.tar.gz
org.eclipse.osee-ddunne/f/nr.tar.xz
org.eclipse.osee-ddunne/f/nr.zip
feature[TW21149]: Fix handling of AdditionalTskCompAsNeededddunne/f/nr
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/ChangeReportTasksUtil.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/ChangeReportTasksUtil.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/ChangeReportTasksUtil.java
index eb421aba4ad..bb10b92059b 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/ChangeReportTasksUtil.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/task/ChangeReportTasksUtil.java
@@ -124,18 +124,17 @@ public class ChangeReportTasksUtil {
// Find additional task matches
List<IAtsTask> additionalTasksFound = new LinkedList<IAtsTask>();
- for (ChangeReportTaskMatch taskMatch : crttwd.getTaskMatches()) {
+ Collection<ChangeReportTaskMatch> addlTaskMatches = crttwd.getTaskMatches();
+ for (ChangeReportTaskMatch taskMatch : addlTaskMatches) {
if (taskMatch.getMatchType().equals(ChangeReportTaskMatchType.AdditionalTskCompAsNeeded)) {
for (IAtsTask task : tasks) {
if (task.getName().equals(taskMatch.getTaskName())) {
- if (taskMatch.getTaskName().equals(task.getName())) {
- taskMatch.setTaskName(task.getName());
- taskMatch.setType(ChangeReportTaskMatchType.Match);
- taskMatch.setTaskWf(task);
- taskMatch.setTaskTok(task.getArtifactToken());
- additionalTasksFound.add(task);
- break;
- }
+ taskMatch.setTaskName(task.getName());
+ taskMatch.setType(ChangeReportTaskMatchType.Match);
+ taskMatch.setTaskWf(task);
+ taskMatch.setTaskTok(task.getArtifactToken());
+ additionalTasksFound.add(task);
+ break;
}
}
}

Back to the top