Revision: 18534
          http://sourceforge.net/p/gate/code/18534
Author:   markagreenwood
Date:     2015-01-15 12:45:08 +0000 (Thu, 15 Jan 2015)
Log Message:
-----------
allow boolean feature values in inline XML export

Modified Paths:
--------------
    gate/trunk/src/main/gate/corpora/DocumentImpl.java

Modified: gate/trunk/src/main/gate/corpora/DocumentImpl.java
===================================================================
--- gate/trunk/src/main/gate/corpora/DocumentImpl.java  2015-01-15 02:20:10 UTC 
(rev 18533)
+++ gate/trunk/src/main/gate/corpora/DocumentImpl.java  2015-01-15 12:45:08 UTC 
(rev 18534)
@@ -2016,10 +2016,10 @@
         }// End if
         if(!(String.class.isAssignableFrom(value.getClass())
                 || Number.class.isAssignableFrom(value.getClass()) || 
java.util.Collection.class
-                .isAssignableFrom(value.getClass()))) {
+                .isAssignableFrom(value.getClass()) || 
Boolean.class.isAssignableFrom(value.getClass()))) {
           Out.prln("Warning:Found a feature VALUE(" + value
                   + ") that doesn't came"
-                  + " from String, Number or Collection.(feature discarded)");
+                  + " from String, Number, Boolean, or Collection.(feature 
discarded)");
           continue;
         }// End if
         if("matches".equals(key)) {

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


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to