[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Dec 6 23:40:34 UTC 2007


gordonp
Thu Dec  6 18:40:34 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv31124/src/main/org/biomoby/shared

Modified Files:
	MobyDataType.java MobyServiceType.java 
Log Message:
Added typechecks
moby-live/Java/src/main/org/biomoby/shared MobyDataType.java,1.23,1.24 MobyServiceType.java,1.11,1.12
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2007/12/01 01:33:03	1.23
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyDataType.java	2007/12/06 23:40:33	1.24
@@ -294,7 +294,7 @@
      * current class.
      */
     public MobyDataType[] getLineage(){
-	Vector lineage = new Vector();
+	Vector<MobyDataType> lineage = new Vector<MobyDataType>();
 	// The MOBY inheritance class graph must of course be acyclic.  Otherwise
 	// we could get an infinite loop here...
 	for(MobyDataType parent = this; parent != null; parent = parent.getParent()){
@@ -361,7 +361,7 @@
      * Returns all HAS/HASA children for this object <em>and</em> all of its parent classes.
      */
     public MobyRelationship[] getAllChildren() {
-	Vector allChildren = new Vector();
+	Vector<MobyRelationship> allChildren = new Vector<MobyRelationship>();
 	MobyDataType[] lineage = getLineage();
 	for(int i = 0; lineage != null && i < lineage.length; i++){
 	    MobyRelationship[] members = lineage[i].getChildren();

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java	2007/08/24 09:35:27	1.11
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyServiceType.java	2007/12/06 23:40:34	1.12
@@ -189,7 +189,7 @@
     }
 
     public MobyServiceType[] getLineage(){
-	Vector lineage = new Vector();
+	Vector<MobyServiceType> lineage = new Vector<MobyServiceType>();
 	// The MOBY inheritance class graph must of course be acyclic.  Otherwise
 	// we could get an infinite loop here...
 	for(MobyServiceType parent = this; parent != null; parent = parent.getParent()){




More information about the MOBY-guts mailing list