[Biojava-dev] Feature Templates
Schreiber, Mark
mark.schreiber at agresearch.co.nz
Mon Sep 8 00:45:25 EDT 2003
Hi -
There are not really any strict coding standards, well none that are enforcable anyway :-) A lot seems to depend on the developers IDE or editor. Mostly the code looks OK. I have tidied SimpleFeature a bit.
One possibility would be to run all of the code through a template from time to time which would not be hard with a modern IDE but would make a bit of a hit on the CVS when it happened. Matthew did the last one where he changed the code to use explicit imports.
- Mark
-----Original Message-----
From: Len Trigg [mailto:len at reeltwo.com]
Sent: Mon 8/09/2003 3:55 p.m.
To: Schreiber, Mark
Cc: Matthew Pocock; biojava-dev at biojava.org
Subject: Re: [Biojava-dev] Feature Templates
Mark Schreiber wrote:
> I think that a copy is better than a reference. The question is
> would a shallow copy be OK or should it be a deep copy?
I have changed the SimpleFeature constructor so that rather than
directly referencing the template annotation, it uses the existing
SimpleAnnotation(Annotation) constructor. If deep copies are the way
to go, it should probably happen in that constructor.
BTW: SimpleFeature could do with a pretty printer running over
it... Are there BioJava coding conventions? (I've been going with the
flow of whichever file I've been editing.)
Cheers,
Len.
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================
More information about the biojava-dev
mailing list