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 2016/10/13 15:44:21 UTC

svn commit: r1764711 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java

Author: schor
Date: Thu Oct 13 15:44:21 2016
New Revision: 1764711

URL: http://svn.apache.org/viewvc?rev=1764711&view=rev
Log:
no Jira comments and formatting of code

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java?rev=1764711&r1=1764710&r2=1764711&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/CASImpl.java Thu Oct 13 15:44:21 2016
@@ -2779,7 +2779,7 @@ public class CASImpl extends AbstractCas
   }
 
   /**
-   * remove a FS from indexes in this view
+   * remove a FS from all indexes in this view (except bag indexes, if isSkipBagIndex is true)
    * @param fs the fs to be removed
    * @param ir the view
    * @param toBeAdded the place to record how many times it was in the index, per view
@@ -4405,9 +4405,13 @@ public class CASImpl extends AbstractCas
     
   @Override
   public String toString() {
-    String sofa =  (mySofaRef == null) ? (isBaseCas() ? "Base CAS" : "_InitialView or no Sofa") :
+    String sofa =  (mySofaRef == null) 
+                     ? (isBaseCas() 
+                          ? "Base CAS" 
+                          : "_InitialView or no Sofa") 
+                     : mySofaRef.getSofaID();
 //                 (mySofaRef == 0) ? "no Sofa" :
-                   mySofaRef.getSofaID();
+                       
     return this.getClass().getSimpleName() + ":" + getCasId() + "[view: " + sofa + "]";
   }