wlu: changed closureElements from List to Collection (implemented as HashSet)
diff --git a/1.5/plugins/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java b/1.5/plugins/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
index ddad6cf..d3820e0 100644
--- a/1.5/plugins/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
+++ b/1.5/plugins/org.eclipse.epf.publishing/src/org/eclipse/epf/publishing/services/ProcessPublishingContentValidator.java
@@ -11,7 +11,8 @@
package org.eclipse.epf.publishing.services;
import java.io.PrintStream;
-import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
@@ -42,7 +43,7 @@
protected static final String CLOSURE_LOG_FILENAME = "processClosure.html"; //$NON-NLS-1$
// closure elements for process publishing, null for config publishing
- List closureElements = null;
+ Collection closureElements = null;
private boolean isFinalClosure = false;
// // maintain the object references generated from TaskDescriptors
@@ -74,7 +75,7 @@
public void addClosureElements(List items) {
// do nothing
if ( closureElements == null ) {
- closureElements = new ArrayList();
+ closureElements = new HashSet();
}
closureElements.addAll(items);