[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Apr 27 13:44:21 UTC 2007


gordonp
Fri Apr 27 09:44:21 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv3272/src/main/org/biomoby/shared

Modified Files:
	MobyPrimaryDataSimple.java 
Log Message:
Worked around namespace setting quirks, replace blank ones if they the only one
moby-live/Java/src/main/org/biomoby/shared MobyPrimaryDataSimple.java,1.10,1.11
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java	2006/11/11 23:04:34	1.10
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyPrimaryDataSimple.java	2007/04/27 13:44:21	1.11
@@ -134,8 +134,14 @@
      *************************************************************************/
     public void addNamespace (MobyNamespace value) {
 	synchronized (namespaces) {
-	    if (! namespaces.contains (value))
+	    if (! namespaces.contains (value)){
+		// GET RID OF ANY BLANK NAMESPACE IF WE'VE GOT A REAL ONE
+		if(namespaces.size() == 1 &&
+		   namespaces.elementAt(0).getName().length() == 0){
+		    namespaces.remove(0);
+		}
 		namespaces.addElement (value);
+	    }
 	}
     }
 




More information about the MOBY-guts mailing list