[MOBY-guts] biomoby commit
Martin Senger
senger at dev.open-bio.org
Sun Mar 2 12:45:26 UTC 2008
senger
Sun Mar 2 07:45:26 EST 2008
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes
In directory dev.open-bio.org:/tmp/cvs-serv32345/src/main/org/biomoby/shared/datatypes
Modified Files:
MobyObject.java
Log Message:
Too Many Changes - see docs/ChangeLog
moby-live/Java/src/main/org/biomoby/shared/datatypes MobyObject.java,1.6,1.7
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MobyObject.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MobyObject.java 2006/07/07 04:12:40 1.6
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/datatypes/MobyObject.java 2008/03/02 12:45:26 1.7
@@ -100,8 +100,7 @@
* @return a formatted string
*************************************************************************/
public String toString() {
- StringBuffer buf = new StringBuffer();
-// buf.append (Utils.simpleClassName (this.getClass().getName()));
+ StringBuilder buf = new StringBuilder();
buf.append (getMobyTypeName());
if (! name.equals ("")) buf.append (", Article name: " + name);
if (! id.equals ("")) buf.append (", Id: " + id);
@@ -112,7 +111,7 @@
buf.append (((MobyXref)en.nextElement()).format (1));
}
if (! value.equals ("")) buf.append (" Value: " + value + "\n");
- return new String (buf);
+ return new String (buf.toString());
}
/**************************************************************************
More information about the MOBY-guts
mailing list