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 2013/03/27 14:15:04 UTC

svn commit: r1461565 - /uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java

Author: schor
Date: Wed Mar 27 13:15:04 2013
New Revision: 1461565

URL: http://svn.apache.org/r1461565
Log:
[UIMA-2498] commented out debugging helper

Modified:
    uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java

Modified: uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java?rev=1461565&r1=1461564&r2=1461565&view=diff
==============================================================================
--- uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java (original)
+++ uima/uimaj/branches/filteredCompress-uima-2498/uimaj-core/src/main/java/org/apache/uima/cas/impl/TypeSystemImpl.java Wed Mar 27 13:15:04 2013
@@ -1552,10 +1552,22 @@ public class TypeSystemImpl implements T
   TypeInfo getTypeInfo(int typeCode) {
     if (null == typeInfoArray[typeCode]) {
       TypeImpl type = (TypeImpl) ll_getTypeForCode(typeCode);
+//      if (null == type) {
+//        diagnoseBadTypeCode(typeCode);
+//      }
       typeInfoArray[typeCode] = new TypeInfo(type);
     }
     return typeInfoArray[typeCode];
   }
+  
+//  // debugging
+//  private void diagnoseBadTypeCode(int typeCode) {
+//    System.err.format("Bad type code %,d passed to TypeSystem.getTypeInfo, largest type code is %,d, size of types list is %,d%n", 
+//        typeCode, getLargestTypeCode(), types.size());
+//    System.err.println(this.toString());
+//    System.err.format("Type in types: %s%n", types.get(typeCode));  
+//    throw new RuntimeException();
+//  }
 
   /*********************************************************
    * Type Mapping Objects