You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2014/11/13 15:16:51 UTC
svn commit: r1639331 -
/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java
Author: schor
Date: Thu Nov 13 14:16:50 2014
New Revision: 1639331
URL: http://svn.apache.org/r1639331
Log:
[UIMA-4101] correct reversed true/false param when expanding table
Modified:
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java
Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java?rev=1639331&r1=1639330&r2=1639331&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java (original)
+++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/internal/util/IntHashSet.java Thu Nov 13 14:16:50 2014
@@ -211,7 +211,7 @@ public class IntHashSet implements Posit
} else {
final int [] oldKeys = keys4;
if (TUNE) {System.out.println("Capacity increasing from " + oldCapacity + " to " + newCapacity);}
- newTableKeepSize(newCapacity, false);
+ newTableKeepSize(newCapacity, true);
for (int key : oldKeys) {
if (key != 0) {
addInner4(key);
@@ -402,6 +402,9 @@ public class IntHashSet implements Posit
*/
private void addInner4(int rawKey) {
final int i = findPosition(rawKey);
+ if (null == keys4) {
+ System.out.println("debug stop");
+ }
assert(keys4[i] == 0);
keys4[i] = rawKey;
}