Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-09-11 17:47:23 +0000
committerRoberto E. Escobar2014-10-01 21:04:33 +0000
commita30d454be52218576b71bc298890ed89f721dabd (patch)
tree7976359fbfbdb0eee5b810b10418e9991cf8b4b1
parent9b48b24a397568ab7a7ba063e78556f00cb0a12e (diff)
downloadorg.eclipse.osee-a30d454be52218576b71bc298890ed89f721dabd.tar.gz
org.eclipse.osee-a30d454be52218576b71bc298890ed89f721dabd.tar.xz
org.eclipse.osee-a30d454be52218576b71bc298890ed89f721dabd.zip
refinement: Remove error log of uncompleted workflow with completed version
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/config/Versions.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/config/Versions.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/config/Versions.java
index e16c248b57b..8ca424cea10 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/config/Versions.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/config/Versions.java
@@ -12,23 +12,17 @@ package org.eclipse.osee.ats.core.config;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.logging.Level;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.version.IAtsVersion;
import org.eclipse.osee.ats.api.version.IAtsVersionService;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Donald G. Dunne
*/
public class Versions {
- private static Set<String> targetErrorLoggedForId = new HashSet<String>(10);
-
public static Collection<String> getNames(Collection<? extends IAtsVersion> versions) {
ArrayList<String> names = new ArrayList<String>();
for (IAtsVersion version : versions) {
@@ -46,11 +40,6 @@ public class Versions {
if (!teamWf.getStateMgr().getStateType().isCompletedOrCancelled() && versionService.isReleased(teamWf)) {
String errStr =
"Workflow " + teamWf.getAtsId() + " targeted for released version, but not completed: " + version;
- // only log error once
- if (!targetErrorLoggedForId.contains(teamWf.getGuid())) {
- OseeLog.log(Versions.class, Level.SEVERE, errStr, null);
- targetErrorLoggedForId.add(teamWf.getGuid());
- }
return "!Error " + errStr;
}
return version.getName();

Back to the top