Revision: 16805
          http://sourceforge.net/p/gate/code/16805
Author:   ian_roberts
Date:     2013-08-20 14:35:16 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
Removed what I hope is the final place that assumes nominal features are of
type java.lang.String - everywhere else calls toString() on the values as
necessary so it doesn't really matter what type they are in the original GATE
document.

Modified Paths:
--------------
    mimir/trunk/plugins/db-h2/src/gate/mimir/db/AnnotationTemplateCache.java

Modified: 
mimir/trunk/plugins/db-h2/src/gate/mimir/db/AnnotationTemplateCache.java
===================================================================
--- mimir/trunk/plugins/db-h2/src/gate/mimir/db/AnnotationTemplateCache.java    
2013-08-20 10:52:03 UTC (rev 16804)
+++ mimir/trunk/plugins/db-h2/src/gate/mimir/db/AnnotationTemplateCache.java    
2013-08-20 14:35:16 UTC (rev 16805)
@@ -36,8 +36,7 @@
       // as owner.getNominalFeatureNames() (i.e. 0, if no nominal features)
       features = new short[nominalvalues.length];
       for(int i = 0; i < nominalvalues.length; i++) {
-        String value =
-                (String)annFeats.get(owner.getNominalFeatures()[i]);
+        Object value = annFeats.get(owner.getNominalFeatures()[i]);
         if(value == null) {
           features[i] = NULL;
         } else {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to