Skip to content
Browse files

Deprecated code removed

  • Loading branch information...
1 parent 94f5e77 commit e562cba151a3e9bd4b255145bbc404b0e1ed7ed5 @carlasouza carlasouza committed Aug 3, 2011
View
9 ...service/java/source/src/org/globus/workspace/service/impls/async/WorkspaceThreadPool.java
@@ -16,12 +16,13 @@
package org.globus.workspace.service.impls.async;
-import java.util.Vector;
+import java.util.ArrayList;
+import java.util.List;
// TODO: move to executor
public class WorkspaceThreadPool {
- private final Vector workThreads = new Vector();
+ private final List workThreads = new ArrayList<WorkspaceThread>();
private final WorkspaceRequestQueue queue;
public WorkspaceThreadPool(WorkspaceRequestQueue queue) {
@@ -32,7 +33,7 @@ public void startThreads(int threads) {
for (int i = 0; i < threads; i++) {
WorkspaceThread thread = createThread();
thread.setName(thread.getName() + "_WorkspTaskThrd");
- this.workThreads.addElement(thread);
+ this.workThreads.add(thread);
thread.start();
}
}
@@ -54,7 +55,7 @@ public void stopThreads() {
}
public void removeThread(WorkspaceThread thread) {
- this.workThreads.removeElement(thread);
+ this.workThreads.remove(thread);
synchronized (this) {
notifyAll();
}

0 comments on commit e562cba

Please sign in to comment.
Something went wrong with that request. Please try again.