[MOBY-guts] biomoby commit

Martin Senger senger at dev.open-bio.org
Mon Mar 3 11:34:17 UTC 2008


senger
Mon Mar  3 06:34:17 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes
In directory dev.open-bio.org:/tmp/cvs-serv3170/src/main/org/biomoby/shared/datatypes

Modified Files:
	MapPrimitiveDataTypes.java 
Log Message:
* more work on junit testing and its infrastructure
* removing some compiler warnings from generated data types
* better use of caching in skeleton generator

moby-live/Java/src/main/org/biomoby/shared/datatypes MapPrimitiveDataTypes.java,1.4,1.5
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MapPrimitiveDataTypes.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MapPrimitiveDataTypes.java	2008/02/28 05:21:48	1.4
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MapPrimitiveDataTypes.java	2008/03/03 11:34:17	1.5
@@ -9,6 +9,7 @@
 package org.biomoby.shared.datatypes;
 
 import org.biomoby.shared.MobyException;
+import java.util.Map;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
@@ -29,7 +30,7 @@
  */
 abstract public class MapPrimitiveDataTypes {
 
-    protected static HashMap type2class = new HashMap();
+    protected static Map<String,String> type2class = new HashMap<String,String>();
     static {
         type2class.put ("Object", "org.biomoby.shared.datatypes.MobyObject");
 
@@ -52,7 +53,7 @@
      *************************************************************************/
     public Class getClass (String dataTypeName)
 	throws MobyException {
-	String className = (String)type2class.get (dataTypeName);
+	String className = type2class.get (dataTypeName);
 	if (className == null) {
 
 	    // a hack: sometimes the 'dataTypeName' is wrong - it is




More information about the MOBY-guts mailing list