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:44:17 UTC

svn commit: r540229 - /incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java

Author: schor
Date: Mon May 21 11:44:16 2007
New Revision: 540229

URL: http://svn.apache.org/viewvc?view=rev&rev=540229
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/FloatArrayFSImpl.java

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java?view=diff&rev=540229&r1=540228&r2=540229
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FloatArrayFSImpl.java Mon May 21 11:44:16 2007
@@ -77,7 +77,7 @@
    */
   public void copyFromArray(float[] src, int srcOffset, int destOffset, int length) {
     casImpl.checkArrayBounds(addr, destOffset, length);
-    final int[] heap = this.casImpl.heap.heap;
+    final int[] heap = this.casImpl.getHeap().heap;
     destOffset += this.casImpl.getArrayStartAddress(this.addr);
     for (int i = 0; i < length; i++) {
       heap[i + destOffset] = CASImpl.float2int(src[i + srcOffset]);
@@ -89,7 +89,7 @@
    */
   public void copyToArray(int srcOffset, float[] 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] = CASImpl.int2float(heap[i + srcOffset]);
@@ -111,7 +111,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] = Float.toString(CASImpl.int2float(heap[i + srcOffset]));
@@ -123,7 +123,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] = CASImpl.float2int(Float.parseFloat(src[i + srcOffset]));