Revision: 14477
http://gate.svn.sourceforge.net/gate/?rev=14477&view=rev
Author: valyt
Date: 2011-11-02 10:22:36 +0000 (Wed, 02 Nov 2011)
Log Message:
-----------
Bugfix (was comparing a class with a String).
Modified Paths:
--------------
gate/trunk/src/gate/creole/FeatureSchema.java
Modified: gate/trunk/src/gate/creole/FeatureSchema.java
===================================================================
--- gate/trunk/src/gate/creole/FeatureSchema.java 2011-11-02 02:28:47 UTC
(rev 14476)
+++ gate/trunk/src/gate/creole/FeatureSchema.java 2011-11-02 10:22:36 UTC
(rev 14477)
@@ -100,7 +100,7 @@
}// setPermissibleValues()
/**
- * Adds a value to the enumeration of permissible value for an feature
+ * Adds a value to the enumeration of permissible value for a feature
* of this type. Returns false, i.e. fails, if the class name of the
* feature value does not match the class name of the given object
*
@@ -109,7 +109,7 @@
*/
public boolean addPermissibleValue(Object obj) {
if(obj == null) return false;
- if(!obj.getClass().getName().equals(featureValueClass)) return false;
+ if(!obj.getClass().getName().equals(featureValueClass.getName())) return
false;
if(featurePermissibleValuesSet == null)
featurePermissibleValuesSet = new HashSet();
return featurePermissibleValuesSet.add(obj);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs