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 2007/05/21 20:47:19 UTC
svn commit: r540231 -
/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java
Author: schor
Date: Mon May 21 11:47:18 2007
New Revision: 540231
URL: http://svn.apache.org/viewvc?view=rev&rev=540231
Log:
[UIMA-409] make refs to cas HEAP go thru getHeap().
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java?view=diff&rev=540231&r1=540230&r2=540231
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/IntArrayFSImpl.java Mon May 21 11:47:18 2007
@@ -78,7 +78,7 @@
public void copyFromArray(int[] src, int srcOffset, int destOffset, int length) {
casImpl.checkArrayBounds(addr, destOffset, length);
destOffset += this.casImpl.getArrayStartAddress(this.addr);
- System.arraycopy(src, srcOffset, this.casImpl.heap.heap, destOffset, length);
+ System.arraycopy(src, srcOffset, this.casImpl.getHeap().heap, destOffset, length);
}
/**
@@ -87,7 +87,7 @@
public void copyToArray(int srcOffset, int[] dest, int destOffset, int length) {
casImpl.checkArrayBounds(addr, srcOffset, length);
srcOffset += this.casImpl.getArrayStartAddress(this.addr);
- System.arraycopy(this.casImpl.heap.heap, srcOffset, dest, destOffset, length);
+ System.arraycopy(this.casImpl.getHeap().heap, srcOffset, dest, destOffset, length);
}
/**
@@ -105,7 +105,7 @@
*/
public void copyToArray(int srcOffset, String[] dest, int destOffset, int length) {
casImpl.checkArrayBounds(addr, srcOffset, length);
- final int[] heap = this.casImpl.heap.heap;
+ final int[] heap = this.casImpl.getHeap().heap;
srcOffset += this.casImpl.getArrayStartAddress(this.addr);
for (int i = 0; i < length; i++) {
dest[i + destOffset] = Integer.toString(heap[i + srcOffset]);
@@ -117,7 +117,7 @@
*/
public void copyFromArray(String[] src, int srcOffset, int destOffset, int length) {
casImpl.checkArrayBounds(addr, destOffset, length);
- final int[] heap = casImpl.heap.heap;
+ final int[] heap = casImpl.getHeap().heap;
destOffset += casImpl.getArrayStartAddress(this.addr);
for (int i = 0; i < length; i++) {
heap[i + destOffset] = Integer.parseInt(src[i + srcOffset]);