You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ot...@apache.org on 2002/09/15 19:54:30 UTC

cvs commit: jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/threads TaskQueue.java

otis        2002/09/15 10:54:30

  Modified:    contributions/webcrawler-LARM/src/de/lanlab/larm/threads
                        TaskQueue.java
  Log:
  - Made queue attribute private; cosmetics.
  
  Revision  Changes    Path
  1.3       +7 -10     jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/threads/TaskQueue.java
  
  Index: TaskQueue.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/webcrawler-LARM/src/de/lanlab/larm/threads/TaskQueue.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TaskQueue.java	22 May 2002 23:09:19 -0000	1.2
  +++ TaskQueue.java	15 Sep 2002 17:54:29 -0000	1.3
  @@ -56,6 +56,9 @@
   
   import de.lanlab.larm.util.Queue;
   import java.util.Collection;
  +import java.util.LinkedList;
  +import java.util.Iterator;
  +
   
   /**
    * Title:        LARM Lanlab Retrieval Machine
  @@ -63,28 +66,23 @@
    * Copyright:    Copyright (c)
    * Company:
    * @author
  - * @version 1.0
  + * @version $Id$
    */
  -
  -import java.util.LinkedList;
  -import java.util.Iterator;
  -
   public class TaskQueue implements Queue
   {
  -    LinkedList queue = new LinkedList();
  +    private LinkedList queue = new LinkedList();
   
       /**
        *
        */
       public TaskQueue()
       {
  -
       }
   
   
       public void insertMultiple(Collection c)
       {
  -      throw new UnsupportedOperationException();
  +	throw new UnsupportedOperationException();
       }
   
       /**
  @@ -103,7 +101,7 @@
        */
       public Object remove()
       {
  -       return queue.isEmpty() ? null : (InterruptableTask)queue.removeLast();
  +	return queue.isEmpty() ? null : (InterruptableTask)queue.removeLast();
       }
   
       /**
  @@ -132,4 +130,3 @@
           return queue.size();
       }
   }
  -
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>