Author: schor
Date: Mon Oct 27 15:22:15 2014
New Revision: 1634570

URL: http://svn.apache.org/r1634570
Log:
no Jira, comments only

Modified:
    
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntVector.java

Modified: 
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntVector.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntVector.java?rev=1634570&r1=1634569&r2=1634570&view=diff
==============================================================================
--- 
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntVector.java
 (original)
+++ 
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntVector.java
 Mon Oct 27 15:22:15 2014
@@ -123,6 +123,12 @@ public class IntVector implements Serial
     add(elements, 0, elements.length);
   }
   
+  /**
+   * Add a slice of elements to the end
+   * @param elements
+   * @param startpos
+   * @param endpos
+   */
   public void add(int[] elements, int startpos, int endpos) {
     final int len = endpos - startpos;
     final int posNow = this.pos;
@@ -173,6 +179,8 @@ public class IntVector implements Serial
 
   /**
    * Set an element at a certain position in the vector. Vector will grow.
+   * Not apparently used (2014)
+   * Seems silly to grow if replacing element at index?
    */
   public void put(int index, int element) {
     ensure_size(index + 1);
@@ -274,7 +282,7 @@ public class IntVector implements Serial
   }
 
   /**
-   * Return the position of the first occurence of <code>elem</code> in the 
IntVector, if it
+   * Return the position of the first occurrence of <code>elem</code> in the 
IntVector, if it
    * exists.
    * 
    * @param elem
@@ -294,6 +302,7 @@ public class IntVector implements Serial
 
   /**
    * Set every element of the vector to some value.
+   * Not used (2014)
    * 
    * @param value
    *          The fill value.


Reply via email to