[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Sat Jun 9 18:17:12 UTC 2007


gordonp
Sat Jun  9 14:17:12 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv4947/src/main/org/biomoby/shared

Modified Files:
	MobyDataType.java 
Log Message:
Shortcircuit on empty parent searches, for efficiency
moby-live/Java/src/main/org/biomoby/shared MobyDataType.java,1.16,1.17
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2007/06/08 20:30:22	1.16
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2007/06/09 18:17:12	1.17
@@ -159,6 +159,7 @@
 	}
 
 	// Wasn't found if we got to here
+	//(new Exception("Couldn't find data type for '"+className+"'")).printStackTrace();
 	return null;
     }
 
@@ -275,7 +276,8 @@
     }
 
     public MobyDataType getParent(){
-	return getDataType(getParentName());
+	String parentName = getParentName();
+	return parentName == null || parentName.length() == 0 ? null : getDataType(parentName);
     }
 
     /**




More information about the MOBY-guts mailing list