[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/config/templates
In directory dev.open-bio.org:/tmp/cvs-serv3170/src/config/templates

Modified Files:
	DataTypeTemplate.java MembersHASTemplate.java 
	MethodsHASTemplate.java MethodsHAS_string_Template.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/config/templates DataTypeTemplate.java,1.2,1.3 MembersHASTemplate.java,1.2,1.3 MethodsHASTemplate.java,1.2,1.3 MethodsHAS_string_Template.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/DataTypeTemplate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/DataTypeTemplate.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/DataTypeTemplate.java	2008/03/03 11:34:16	1.3
@@ -43,10 +43,10 @@
      *
      *************************************************************************/
     public String toString() {
-	StringBuffer buf_I_am_sorry_that_this_produces_a_warning = new StringBuffer();
+	StringBuilder buf_I_am_sorry_that_this_produces_a_warning = new StringBuilder();
 	buf_I_am_sorry_that_this_produces_a_warning.append (super.toString());
 @TO_STRING@
-	return new String (buf_I_am_sorry_that_this_produces_a_warning);
+	return new String (buf_I_am_sorry_that_this_produces_a_warning.toString());
     }
 
     /**************************************************************************

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/MembersHASTemplate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/MembersHASTemplate.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/MembersHASTemplate.java	2008/03/03 11:34:17	1.3
@@ -1,5 +1,5 @@
     /** An article name for a member of this object. */
     public static final String ARTICLE_NAME_ at ESC_UPPER_ARTICLE_NAME@ = "@ARTICLE_NAME@";
     // elements are of type @CHILDTYPE_NAME@
-    protected java.util.Vector @ESC_ARTICLE_NAME@ = new java.util.Vector();
+    protected java.util.Vector<Object> @ESC_ARTICLE_NAME@ = new java.util.Vector<Object>();
 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/MethodsHASTemplate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/MethodsHASTemplate.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/MethodsHASTemplate.java	2008/03/03 11:34:17	1.3
@@ -19,7 +19,7 @@
      * only one value
      *************************************************************************/
     public void set_ at ESC_ARTICLE_NAME@ (@CHILDTYPE_NAME@[] value) {
-	this. at ESC_ARTICLE_NAME@ = new java.util.Vector();
+	this. at ESC_ARTICLE_NAME@ = new java.util.Vector<Object>();
 	for (int i = 0; i < value.length; i++)
 	    set_ at ESC_ARTICLE_NAME@ (value[i]);
     }

===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/MethodsHAS_string_Template.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/MethodsHAS_string_Template.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/MethodsHAS_string_Template.java	2008/03/03 11:34:17	1.3
@@ -21,7 +21,7 @@
      * only one value
      *************************************************************************/
     public void set_ at ESC_ARTICLE_NAME@ (String[] value) {
-	this. at ESC_ARTICLE_NAME@ = new java.util.Vector();
+	this. at ESC_ARTICLE_NAME@ = new java.util.Vector<Object>();
 	for (int i = 0; i < value.length; i++)
 	    set_ at ESC_ARTICLE_NAME@ (value[i]);
     }




More information about the MOBY-guts mailing list