[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Dec 7 20:24:03 UTC 2007


gordonp
Fri Dec  7 15:24:03 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv2142/src/main/org/biomoby/shared

Modified Files:
	MobyService.java 
Log Message:
Delay creating blank MobyServiceTyope until absolutely necessary
moby-live/Java/src/main/org/biomoby/shared MobyService.java,1.20,1.21
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2007/08/24 09:35:27	1.20
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2007/12/07 20:24:03	1.21
@@ -52,7 +52,7 @@
     protected boolean authoritativeService = true;
     protected String id = null;
     protected String lsid = null;
-    protected MobyServiceType serviceType = new MobyServiceType();
+    protected MobyServiceType serviceType;
 
     public static final int UNCHECKED = 0;
     public static final int DEAD= 1;
@@ -496,7 +496,7 @@
       * @return the MobyServiceType of this service
       */
  	public MobyServiceType getServiceType() {
- 		return serviceType;
+ 		return serviceType != null ? serviceType : new MobyServiceType();
  	}
  
  	/**




More information about the MOBY-guts mailing list